Package org.n52.shetland.util
Class ReferencedEnvelope
java.lang.Object
org.n52.shetland.util.ReferencedEnvelope
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionReferencedEnvelope(org.locationtech.jts.geom.Envelope envelope, int srid) constructorReferencedEnvelope(org.locationtech.jts.geom.Geometry geometry) -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanvoidexpandToInclude(org.locationtech.jts.geom.Envelope e) Expand this envelope to include the given envelope.voidExpand this envelope to include the given envelope.org.locationtech.jts.geom.Coordinateorg.locationtech.jts.geom.Coordinate[]org.locationtech.jts.geom.EnvelopeGet envelopedoublegetMaxX()doublegetMaxY()getMaxZ()Creates the minimum and maximum values of this envelope in the default EPSG.doublegetMinX()doublegetMinY()getMinZ()intgetSrid()Get SRIDinthashCode()booleanis1D()static booleanisNotNullOrEmpty(ReferencedEnvelope envelope) Static method to check if an SosEnvelope is not null and is not emptybooleanbooleanbooleansetEnvelope(org.locationtech.jts.geom.Envelope envelope) Set envelopesetSrid(int srid) Set SRIDorg.locationtech.jts.geom.GeometrytoString()
-
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 envelopesrid- 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 benull)
-
expandToInclude
Expand this envelope to include the given envelope.- Parameters:
e- the envelope (may benull)
-
setEnvelope
Set envelope- Parameters:
envelope- the envelope to set- Returns:
this
-
getMinMaxFromEnvelope
Creates the minimum and maximum values of this envelope in the default EPSG.- Returns:
- the
MinMaxdescribing the envelope
-
getSrid
public int getSrid()Get SRID- Returns:
- the srid
-
isSetSrid
public boolean isSetSrid() -
setSrid
Set SRID- Parameters:
srid- the srid to set- Returns:
this
-
getMinZ
- Returns:
- the minZ
-
setMinZ
- Parameters:
minZ- the minZ to set
-
getMaxZ
- Returns:
- the maxZ
-
setMaxZ
- Parameters:
maxZ- the maxZ to set
-
isSetMinMaxZ
public boolean isSetMinMaxZ() -
isSetEnvelope
public boolean isSetEnvelope() -
hashCode
public int hashCode() -
equals
-
toString
-
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
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
-