|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractDirectPosition
public abstract class AbstractDirectPosition
Base class for direct position implementations. This base class
provides default implementations for toString()
, equals(java.lang.Object)
and hashCode()
methods.
This class do not holds any state. The decision to implement Serializable
or org.geotools.util.Cloneable
interfaces is left to implementors.
modules/library/referencing (gt-referencing.jar)
Constructor Summary | |
---|---|
protected |
AbstractDirectPosition()
Constructs a direct position. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Returns true if the specified object is also a direct position with equals coordinate and
CRS. |
double[] |
getCoordinate()
Returns a sequence of numbers that hold the coordinate of this position in its reference system. |
double[] |
getCoordinates()
Deprecated. Renamed as getCoordinate() for consistency with ISO 19107. |
DirectPosition |
getDirectPosition()
Returns always this , the direct position for this
position. |
DirectPosition |
getPosition()
Deprecated. Renamed as getDirectPosition() . |
int |
hashCode()
Returns a hash value for this coordinate. |
void |
setPosition(DirectPosition position)
Sets this direct position to the given position. |
String |
toString()
Returns a string representation of this coordinate. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface DirectPosition |
---|
getCoordinateReferenceSystem, getDimension, getOrdinate, setOrdinate |
Constructor Detail |
---|
protected AbstractDirectPosition()
Method Detail |
---|
@Deprecated public DirectPosition getPosition()
getDirectPosition()
.
getPosition
in interface Position
public DirectPosition getDirectPosition()
this
, the direct position for this
position.
getDirectPosition
in interface Position
public void setPosition(DirectPosition position)
null
, then all ordinate values are set to NaN.
position
- The new position.public double[] getCoordinate()
getCoordinate
in interface DirectPosition
@Deprecated public double[] getCoordinates()
getCoordinate()
for consistency with ISO 19107.
getCoordinates
in interface DirectPosition
public String toString()
CoordinateFormat
.
toString
in class Object
public int hashCode()
hashCode
in interface DirectPosition
hashCode
in class Object
public boolean equals(Object object)
true
if the specified object is also a direct position with equals coordinate and
CRS.
equals
in interface DirectPosition
equals
in class Object
object
- The object to compare with this position.
true
if the given object is equals to this position.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |