|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.geography.coordinates.Coordinates<R>
public abstract class Coordinates<R extends CoordinateReferenceSystem<?>>
This class designates the position that a point occupies in a given n-dimensional reference frame or system. This implementation is compatible with OpenGIS® DirectPosition.
| Constructor Summary | |
|---|---|
protected |
Coordinates()
Default constructor. |
| Method Summary | |
|---|---|
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. |
java.lang.String |
toString()
Returns the text representation of these coordinates as a java.lang.String. |
Text |
toText()
Returns the string representation of this coordinates. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Coordinates()
| Method Detail |
|---|
public abstract R getCoordinateReferenceSystem()
getCoordinateReferenceSystem in interface org.opengis.spatialschema.geometry.DirectPositionpublic abstract int getDimension()
getDimension in interface org.opengis.spatialschema.geometry.DirectPosition
public abstract double getOrdinate(int dimension)
throws java.lang.IndexOutOfBoundsException
getOrdinate in interface org.opengis.spatialschema.geometry.DirectPositiondimension - The dimension in the range 0 to
dimension-1.
java.lang.IndexOutOfBoundsException - if the specified dimension is out
of bounds.
public final void setOrdinate(int dimension,
double value)
throws java.lang.IndexOutOfBoundsException
UnsupportedOperationException as
JScience coordinates are immutable.
setOrdinate in interface org.opengis.spatialschema.geometry.DirectPositionjava.lang.IndexOutOfBoundsExceptionpublic 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()
clone in interface org.opengis.spatialschema.geometry.DirectPositionclone in class java.lang.Objectpublic Text toText()
toText in interface Realtimepublic final java.lang.String toString()
java.lang.String.
toString in class java.lang.ObjecttoText().toString()public abstract Coordinates<?> copy()
allocated
by the calling thread (possibly on the stack).
copy in interface ValueType
|
JScience v4.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||