public abstract class Coordinates<R extends CoordinateReferenceSystem<?>> extends Object implements org.opengis.spatialschema.geometry.DirectPosition, javolution.lang.Realtime, javolution.lang.ValueType, javolution.xml.XMLSerializable
| Modifier and Type | Method and Description |
|---|---|
Coordinates<R> |
clone()
OpenGIS® - Makes an exact copy of this coordinate.
|
abstract Coordinates<?> |
copy()
Returns a copy of these coordinates
allocated
by the calling thread (possibly on the stack). |
abstract R |
getCoordinateReferenceSystem()
Returns the reference system for this coordinates.
|
double[] |
getCoordinates()
OpenGIS® - Returns the sequence of numbers that hold the coordinate
of this position in its reference system.
|
abstract int |
getDimension()
OpenGIS® - The length of coordinate sequence (the number of entries).
|
abstract double |
getOrdinate(int dimension)
OpenGIS® - Returns the ordinate at the specified dimension.
|
org.opengis.spatialschema.geometry.DirectPosition |
getPosition()
OpenGIS® - Returns the direct position for this position.
|
void |
setOrdinate(int dimension,
double value)
OpenGIS® - Throws
UnsupportedOperationException as
JScience coordinates are immutable. |
String |
toString()
Returns the text representation of these coordinates as a
java.lang.String. |
javolution.text.Text |
toText()
Returns the string representation of this coordinates.
|
public abstract R getCoordinateReferenceSystem()
getCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositionpublic abstract int getDimension()
getDimension in interface org.opengis.spatialschema.geometry.DirectPositionpublic abstract double getOrdinate(int dimension)
throws IndexOutOfBoundsException
getOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiondimension - The dimension in the range 0 to
dimension-1.IndexOutOfBoundsException - if the specified dimension is out
of bounds.public final void setOrdinate(int dimension,
double value)
throws IndexOutOfBoundsException
UnsupportedOperationException as
JScience coordinates are immutable.setOrdinate in interface org.opengis.spatialschema.geometry.DirectPositionIndexOutOfBoundsExceptionpublic final double[] getCoordinates()
getCoordinates in interface org.opengis.spatialschema.geometry.DirectPositionDirectPosition object.public final org.opengis.spatialschema.geometry.DirectPosition getPosition()
thispublic final Coordinates<R> clone()
public javolution.text.Text toText()
toText in interface javolution.lang.Realtimepublic final String toString()
java.lang.String.public abstract Coordinates<?> copy()
allocated
by the calling thread (possibly on the stack).copy in interface javolution.lang.ValueType