Class ReferencedEnvelope

java.lang.Object
org.n52.shetland.util.ReferencedEnvelope
All Implemented Interfaces:
Serializable

public class ReferencedEnvelope extends Object implements Serializable
Class for internal Envelope representation TODO should this class offer merging capabilities like SosEnvelope.expandTo(SosEnvelope) considering coordinate transformations?
Since:
1.0.0
See Also:
  • Constructor Details

    • ReferencedEnvelope

      public ReferencedEnvelope()
    • ReferencedEnvelope

      public ReferencedEnvelope(org.locationtech.jts.geom.Geometry geometry)
    • ReferencedEnvelope

      public ReferencedEnvelope(org.locationtech.jts.geom.Envelope envelope, int srid)
      constructor
      Parameters:
      envelope - JTS envelope
      srid - SRID
  • Method Details

    • getEnvelope

      public org.locationtech.jts.geom.Envelope getEnvelope()
      Get envelope
      Returns:
      the envelope
    • expandToInclude

      public void expandToInclude(org.locationtech.jts.geom.Envelope e)
      Expand this envelope to include the given envelope.
      Parameters:
      e - the envelope (may be null)
    • expandToInclude

      public void expandToInclude(ReferencedEnvelope e)
      Expand this envelope to include the given envelope.
      Parameters:
      e - the envelope (may be null)
    • setEnvelope

      public ReferencedEnvelope setEnvelope(org.locationtech.jts.geom.Envelope envelope)
      Set envelope
      Parameters:
      envelope - the envelope to set
      Returns:
      this
    • getMinMaxFromEnvelope

      public MinMax<String> getMinMaxFromEnvelope()
      Creates the minimum and maximum values of this envelope in the default EPSG.
      Returns:
      the MinMax describing the envelope
    • getSrid

      public int getSrid()
      Get SRID
      Returns:
      the srid
    • isSetSrid

      public boolean isSetSrid()
    • setSrid

      public ReferencedEnvelope setSrid(int srid)
      Set SRID
      Parameters:
      srid - the srid to set
      Returns:
      this
    • getMinZ

      public Double getMinZ()
      Returns:
      the minZ
    • setMinZ

      public ReferencedEnvelope setMinZ(Double minZ)
      Parameters:
      minZ - the minZ to set
    • getMaxZ

      public Double getMaxZ()
      Returns:
      the maxZ
    • setMaxZ

      public ReferencedEnvelope setMaxZ(Double maxZ)
      Parameters:
      maxZ - the maxZ to set
    • isSetMinMaxZ

      public boolean isSetMinMaxZ()
    • isSetEnvelope

      public boolean isSetEnvelope()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMinX

      public double getMinX()
    • getMaxX

      public double getMaxX()
    • getMinY

      public double getMinY()
    • getMaxY

      public double getMaxY()
    • getCoordinates

      public org.locationtech.jts.geom.Coordinate[] getCoordinates()
    • getCoordinate

      public org.locationtech.jts.geom.Coordinate getCoordinate()
    • toGeometry

      public org.locationtech.jts.geom.Geometry toGeometry()
    • is1D

      public boolean is1D()
    • isNotNullOrEmpty

      public static boolean isNotNullOrEmpty(ReferencedEnvelope envelope)
      Static method to check if an SosEnvelope is not null and is not empty
      Parameters:
      envelope - SosEnvelope to check
      Returns:
      true, if SosEnvelope is not null and not empty.
    • copy

      public ReferencedEnvelope copy()