|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.pt.CoordinatePoint
GeneralDirectPosition
in the org.geotools.geometry package.
A position defined by a list of numbers. The ordinate
values are indexed from 0 to (numDim-1),
where numDim is the dimension of the coordinate system
the coordinate point belongs in.
PT_CoordinatePoint,
Point2D,
Serialized Form| Field Summary | |
double[] |
ord
Deprecated. The ordinates of the coordinate point. |
| Constructor Summary | |
CoordinatePoint(CoordinatePoint point)
Deprecated. Construct a coordinate initialized to the same values than the specified point. |
|
CoordinatePoint(double[] ord)
Deprecated. Construct a coordinate with the specified ordinates. |
|
CoordinatePoint(double x,
double y)
Deprecated. Construct a 2D coordinate from the specified ordinates. |
|
CoordinatePoint(double x,
double y,
double z)
Deprecated. Construct a 3D coordinate from the specified ordinates. |
|
CoordinatePoint(int numDim)
Deprecated. Construct a coordinate with the specified number of dimensions. |
|
CoordinatePoint(java.awt.geom.Point2D point)
Deprecated. Construct a coordinate from the specified Point2D. |
|
| Method Summary | |
java.lang.Object |
clone()
Deprecated. Returns a deep copy of this coordinate. |
boolean |
equals(java.lang.Object object)
Deprecated. Compares the specified object with this coordinate for equality. |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Deprecated. Returns always null. |
double[] |
getCoordinates()
Deprecated. Returns ord. |
int |
getDimension()
Deprecated. The number of ordinates of a CoordinatePoint.
|
double |
getOrdinate(int dimension)
Deprecated. Returns the ordinate value along the specified dimension. |
org.opengis.spatialschema.geometry.DirectPosition |
getPosition()
Deprecated. Returns always this. |
int |
hashCode()
Deprecated. Returns a hash value for this coordinate. |
void |
setLocation(CoordinatePoint point)
Deprecated. Set this coordinate to the specified CoordinatePoint. |
void |
setLocation(java.awt.geom.Point2D point)
Deprecated. Set this coordinate to the specified Point2D.
|
void |
setOrdinate(int dimension,
double value)
Deprecated. |
java.awt.geom.Point2D |
toPoint2D()
Deprecated. Returns a Point2D with the same coordinate
as this CoordinatePoint. |
java.lang.String |
toString()
Deprecated. Returns a string representation of this coordinate. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final double[] ord
PT_CoordinatePoint.ord| Constructor Detail |
public CoordinatePoint(int numDim)
throws java.lang.NegativeArraySizeException
numDim - Number of dimensions.
java.lang.NegativeArraySizeException - if numDim is negative.public CoordinatePoint(double[] ord)
ord array will be copied.
public CoordinatePoint(double x,
double y)
public CoordinatePoint(double x,
double y,
double z)
public CoordinatePoint(java.awt.geom.Point2D point)
Point2D.
public CoordinatePoint(CoordinatePoint point)
| Method Detail |
public org.opengis.spatialschema.geometry.DirectPosition getPosition()
this.
getPosition in interface org.opengis.spatialschema.geometry.geometry.Positionpublic org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
null.
getCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositionpublic double[] getCoordinates()
ord.
getCoordinates in interface org.opengis.spatialschema.geometry.DirectPosition
public void setOrdinate(int dimension,
double value)
throws java.lang.IndexOutOfBoundsException
setOrdinate in interface org.opengis.spatialschema.geometry.DirectPositionjava.lang.IndexOutOfBoundsException
public void setLocation(java.awt.geom.Point2D point)
throws org.opengis.spatialschema.geometry.MismatchedDimensionException
Point2D.
This coordinate must be two-dimensional.
point - The new coordinate for this point.
org.opengis.spatialschema.geometry.MismatchedDimensionException - if this coordinate point is not two-dimensional.
public void setLocation(CoordinatePoint point)
throws org.opengis.spatialschema.geometry.MismatchedDimensionException
CoordinatePoint.
point - The new coordinate for this point.
org.opengis.spatialschema.geometry.MismatchedDimensionException - if this point doesn't
have the expected dimension.public final double getOrdinate(int dimension)
ord[dimension].
getOrdinate in interface org.opengis.spatialschema.geometry.DirectPositionpublic final int getDimension()
CoordinatePoint.
This is equivalent to ord.length.
getDimension in interface org.opengis.spatialschema.geometry.DirectPosition
public java.awt.geom.Point2D toPoint2D()
throws java.lang.IllegalStateException
Point2D with the same coordinate
as this CoordinatePoint. This is a
convenience method for interoperability with Java2D.
java.lang.IllegalStateException - if this coordinate point is not two-dimensional.public int hashCode()
public boolean equals(java.lang.Object object)
public java.lang.Object clone()
clone in interface org.opengis.spatialschema.geometry.DirectPositionpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||