|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.geom.Envelope org.geotools.geometry.jts.ReferencedEnvelope
A JTS envelope associated with a coordinate reference system. In addition, this JTS envelope also implements the GeoAPI envelope interface for interoperability with GeoAPI.
Envelope2D
,
GeneralEnvelope
,
GeographicBoundingBox
,
Serialized FormConstructor Summary | |
ReferencedEnvelope(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Creates a null envelope with the specified coordinate reference system. |
|
ReferencedEnvelope(double x1,
double x2,
double y1,
double y2,
org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Creates an envelope for a region defined by maximum and minimum values. |
|
ReferencedEnvelope(com.vividsolutions.jts.geom.Envelope envelope,
org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Creates a new envelope from an existing envelope. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Compares the specified object with this envelope for equality. |
double |
getCenter(int dimension)
Returns the center ordinate along the specified dimension. |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Returns the coordinate reference system associated with this envelope. |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCRS()
Deprecated. Replaced by getCoordinateReferenceSystem() for consistency with other
envelope implementations, and also because a future GeoAPI release may provides
a method in their interface. |
int |
getDimension()
Returns the number of dimensions. |
double |
getLength(int dimension)
Returns the envelope length along the specified dimension. |
org.opengis.spatialschema.geometry.DirectPosition |
getLowerCorner()
A coordinate position consisting of all the minimal ordinates for each dimension for all points within the . |
double |
getMaximum(int dimension)
Returns the maximal ordinate along the specified dimension. |
double |
getMinimum(int dimension)
Returns the minimal ordinate along the specified dimension. |
org.opengis.spatialschema.geometry.DirectPosition |
getUpperCorner()
A coordinate position consisting of all the maximal ordinates for each dimension for all points within the . |
int |
hashCode()
Returns a hash value for this envelope. |
ReferencedEnvelope |
transform(org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS,
boolean lenient)
Transforms the referenced envelope to the specified coordinate reference system. |
Methods inherited from class com.vividsolutions.jts.geom.Envelope |
contains, contains, contains, distance, expandToInclude, expandToInclude, expandToInclude, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, init, init, init, init, init, intersects, intersects, intersects, intersects, intersects, isNull, overlaps, overlaps, overlaps, setToNull, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ReferencedEnvelope(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
crs
- The coordinate reference system.
java.lang.IllegalArgumentException
- if the CRS dimension is not valid.public ReferencedEnvelope(double x1, double x2, double y1, double y2, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
x1
- the first x-value.x2
- the second x-value.y1
- the first y-value.y2
- the second y-value.crs
- The coordinate reference system.
java.lang.IllegalArgumentException
- if the CRS dimension is not valid.public ReferencedEnvelope(com.vividsolutions.jts.geom.Envelope envelope, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
envelope
- The Envelope to initialize fromcrs
- The coordinate reference system.
java.lang.IllegalArgumentException
- if the CRS dimension is not valid.Method Detail |
public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
getCoordinateReferenceSystem()
for consistency with other
envelope implementations, and also because a future GeoAPI release may provides
a method in their interface.
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
public int getDimension()
getDimension
in interface org.opengis.spatialschema.geometry.Envelope
public double getMinimum(int dimension)
getMinimum
in interface org.opengis.spatialschema.geometry.Envelope
public double getMaximum(int dimension)
getMaximum
in interface org.opengis.spatialschema.geometry.Envelope
public double getCenter(int dimension)
getCenter
in interface org.opengis.spatialschema.geometry.Envelope
public double getLength(int dimension)
getLength
in interface org.opengis.spatialschema.geometry.Envelope
public org.opengis.spatialschema.geometry.DirectPosition getLowerCorner()
getLowerCorner
in interface org.opengis.spatialschema.geometry.Envelope
public org.opengis.spatialschema.geometry.DirectPosition getUpperCorner()
getUpperCorner
in interface org.opengis.spatialschema.geometry.Envelope
public ReferencedEnvelope transform(org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS, boolean lenient) throws org.opengis.referencing.operation.TransformException, org.opengis.referencing.FactoryException
targetCRS
- The target coordinate reference system.lenient
- if datum shift should be applied even if there is insuffisient
information. Otherwise (if ), an exception is thrown in such case.
org.opengis.referencing.FactoryException
- if the math transform can't be determined.
org.opengis.referencing.operation.TransformException
- if at least one coordinate can't be transformed.public int hashCode()
public boolean equals(java.lang.Object object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |