|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMappedPosition
public class MappedPosition
An association between a source and target direct positions. Accuracy information and comments can optionnaly be attached.
Constructor Summary | |
---|---|
MappedPosition(DirectPosition source,
DirectPosition target)
Creates a mapped position from the specified direct positions. |
|
MappedPosition(int dimension)
Creates a mapped position with source and target position of the specified dimension. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Compares this mapped position with the specified object for equality. |
double |
getAccuracy()
Returns an estimation of mapping accuracy in units of target CRS axis, or Double.NaN if unknow. |
String |
getComments()
Returns the comments attached to this mapping, or null if none. |
DirectPosition |
getSource()
Returns the source direct position. |
DirectPosition |
getTarget()
Returns the target direct position. |
int |
hashCode()
Returns a hash code value for this mapped position. |
void |
setAccuracy(double accuracy)
Set the accuracy. |
void |
setComments(String comments)
Set the comments attached to this mapping. |
void |
setSource(DirectPosition point)
Set the source direct position to the specified value. |
void |
setTarget(DirectPosition point)
Set the target direct position to the specified value. |
String |
toString()
Returns a string representation of this mapped position. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappedPosition(int dimension)
public MappedPosition(DirectPosition source, DirectPosition target)
source
- The original direct position.target
- The associated direct position.Method Detail |
---|
public DirectPosition getSource()
setSource(org.opengis.geometry.DirectPosition)
instead.
public void setSource(DirectPosition point)
public DirectPosition getTarget()
setTarget(org.opengis.geometry.DirectPosition)
instead.
public void setTarget(DirectPosition point)
public String getComments()
null
if none.
public void setComments(String comments)
null
if none.
public double getAccuracy()
Double.NaN
if unknow.
public void setAccuracy(double accuracy)
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |