| |
|
| java.lang.Object org.geotools.geometry.Geometry
Geometry | abstract public class Geometry implements org.opengis.geometry.Geometry,Serializable(Code) | | Root class of the Geotools default implementation of geometric object.
Geometry instances are sets of direct positions in a particular coordinate reference system.
since: 2.0 version: $Id: Geometry.java 28965 2008-01-27 16:46:58Z acuster $ author: Martin Desruisseaux |
Field Summary | |
final protected CoordinateReferenceSystem | crs The coordinate reference system used in
coordinates. |
Constructor Summary | |
public | Geometry(CoordinateReferenceSystem crs) Constructs a geometry with the specified coordinate reference system. |
Method Summary | |
public Object | clone() Returns a clone of this geometry with deep copy semantic. | public int | getCoordinateDimension() Returns the dimension of the coordinates that define this
Geometry , which must
be the same as the coordinate dimension of the coordinate reference system for this
Geometry . | public CoordinateReferenceSystem | getCoordinateReferenceSystem() Returns the coordinate reference system used in
coordinates. | public org.opengis.geometry.Geometry | transform(CoordinateReferenceSystem newCRS) Returns a new
Geometry that is the coordinate transformation of this
Geometry into the passed coordinate reference system within the accuracy
of the transformation.
Parameters: newCRS - The new coordinate reference system. |
crs | final protected CoordinateReferenceSystem crs(Code) | | The coordinate reference system used in
coordinates.
|
Geometry | public Geometry(CoordinateReferenceSystem crs)(Code) | | Constructs a geometry with the specified coordinate reference system.
Parameters: crs - The coordinate reference system used in coordinates. |
clone | public Object clone() throws CloneNotSupportedException(Code) | | Returns a clone of this geometry with deep copy semantic. Any change on this object
will have no impact on the returned clone, and conversely. For big geometries, implementations
are encouraged to share as much internal data as possible (as opposed to performing a real
copy of the data), while preserving the deep copy semantic.
The default implementation throws
CloneNotSupportedException . If subclasses
implements
Cloneable , then they should overrides this method.
throws: CloneNotSupportedException - if this object do not support clone. This exception isnever throws if this object implements Cloneable. |
getCoordinateDimension | public int getCoordinateDimension()(Code) | | Returns the dimension of the coordinates that define this
Geometry , which must
be the same as the coordinate dimension of the coordinate reference system for this
Geometry .
The coordinate dimension. See Also: Geometry.getDimension See Also: Geometry.getCoordinateReferenceSystem |
getCoordinateReferenceSystem | public CoordinateReferenceSystem getCoordinateReferenceSystem()(Code) | | Returns the coordinate reference system used in
coordinates.
The coordinate reference system used in coordinates. See Also: Geometry.getCoordinateDimension |
transform | public org.opengis.geometry.Geometry transform(CoordinateReferenceSystem newCRS) throws TransformException(Code) | | Returns a new
Geometry that is the coordinate transformation of this
Geometry into the passed coordinate reference system within the accuracy
of the transformation.
Parameters: newCRS - The new coordinate reference system. The transformed Geometry . throws: TransformException - if the transformation failed. |
|
|
|