|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Holds the coordinates for a position within some coordinate reference system. Since
DirectPositions, as data types, will often be included in larger objects
(such as geometries) that have
references to CoordinateReferenceSystem, the getCoordinateReferenceSystem()
method may returns null if this particular DirectPosition is
included in a larger object with such a reference to a coordinate reference system. In this case, the cordinate reference system is implicitly
assumed to take on the value of the containing object's CoordinateReferenceSystem.
DirectPosition
| Method Summary | |
|---|---|
DirectPosition |
clone()
Makes an exact copy of this coordinate. |
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
The coordinate reference system in which the coordinate is given. |
double[] |
getCoordinates()
Returns a sequence of numbers that hold the coordinate of this position in its reference system. |
int |
getDimension()
The length of coordinate sequence (the number of entries). |
double |
getOrdinate(int dimension)
Returns the ordinate at the specified dimension. |
void |
setOrdinate(int dimension,
double value)
Sets the ordinate value along the specified dimension. |
| Method Detail |
|---|
int getDimension()
dimension
double[] getCoordinates()
coordinates
double getOrdinate(int dimension)
throws IndexOutOfBoundsException
dimension - The dimension in the range 0 to dimension-1.
IndexOutOfBoundsException - if the specified dimension is out of bounds.
void setOrdinate(int dimension,
double value)
throws IndexOutOfBoundsException
dimension - the dimension for the ordinate of interest.value - the ordinate value of interest.
IndexOutOfBoundsException - if the specified dimension is out of bounds.CoordinateReferenceSystem getCoordinateReferenceSystem()
null if this particular DirectPosition is included
in a larger object with such a reference to a coordinate reference system. In this case, the cordinate reference system is implicitly
assumed to take on the value of the containing object's coordinate reference system.
null.
coordinateReferenceSystem
DirectPosition clone()
clone in interface CloneableObject.clone()
|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
Symbols, terms and definitions | Copyright OpenGIS® Consortium |