public class MappedPosition extends Object implements Serializable
Constructor and Description |
---|
MappedPosition(DirectPosition source,
DirectPosition target)
Creates a mapped position from the specified direct positions.
|
MappedPosition(int dimension)
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MappedPosition(int dimension)
public MappedPosition(DirectPosition source, DirectPosition target)
source
- The original direct position.target
- The associated direct position.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()
public boolean equals(Object object)
Copyright © 1996–2019 Geotools. All rights reserved.