|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.geometry.Geometry
Root class of the Geotools default implementation of geometric object. instances are sets of direct positions in a particular coordinate reference system.
Field Summary | |
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
crs
The coordinate reference system used in direct position coordinates. |
Constructor Summary | |
Geometry(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Constructs a geometry with the specified coordinate reference system. |
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this geometry with deep copy semantic. |
int |
getCoordinateDimension()
Returns the dimension of the coordinates that define this , which must be the same as the coordinate dimension of the coordinate reference system for this . |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Returns the coordinate reference system used in direct position coordinates. |
org.opengis.spatialschema.geometry.Geometry |
transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS)
Returns a new that is the coordinate transformation of this into the passed coordinate reference system within the accuracy of the transformation. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.spatialschema.geometry.Geometry |
getBoundary, getBuffer, getCentroid, getClosure, getConvexHull, getDimension, getDistance, getEnvelope, getMaximalComplex, getMbRegion, getRepresentativePoint, isCycle, isMutable, isSimple, toImmutable, transform |
Methods inherited from interface org.opengis.spatialschema.geometry.TransfiniteSet |
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union |
Field Detail |
protected final org.opengis.referencing.crs.CoordinateReferenceSystem crs
Constructor Detail |
public Geometry(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
crs
- The coordinate reference system used in
direct position coordinates.Method Detail |
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem
in interface org.opengis.spatialschema.geometry.Geometry
getCoordinateDimension()
public int getCoordinateDimension()
getCoordinateDimension
in interface org.opengis.spatialschema.geometry.Geometry
Geometry.getDimension(org.opengis.spatialschema.geometry.DirectPosition)
,
getCoordinateReferenceSystem()
public org.opengis.spatialschema.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS) throws org.opengis.referencing.operation.TransformException
transform
in interface org.opengis.spatialschema.geometry.Geometry
newCRS
- The new coordinate reference system.
org.opengis.referencing.operation.TransformException
- if the transformation failed.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
The default implementation throws CloneNotSupportedException
. If subclasses
implements Cloneable
, then they should overrides this method.
clone
in interface org.opengis.spatialschema.geometry.Geometry
java.lang.CloneNotSupportedException
- if this object do not support clone. This exception is
never throws if this object implements Cloneable
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |