Class MappedPosition
Object
MappedPosition
- All Implemented Interfaces:
Serializable
An association between a source and target direct positions. Accuracy
information and comments can optionnaly be attached.
- Since:
- 2.4
- Author:
- Jan Jezek, Martin Desruisseaux
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMappedPosition
(int dimension) MappedPosition
(Position source, Position target) Creates a mapped position from the specified direct positions. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this mapped position with the specified object for equality.double
Returns an estimation of mapping accuracy in units of target CRS axis, orDouble.NaN
if unknow.Returns the comments attached to this mapping, ornull
if none.Returns the source direct position.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
Set the source direct position to the specified value.void
Set the target direct position to the specified value.toString()
Returns a string representation of this mapped position.
-
Constructor Details
-
MappedPosition
public MappedPosition(int dimension) -
MappedPosition
Creates a mapped position from the specified direct positions.- Parameters:
source
- The original direct position.target
- The associated direct position.
-
-
Method Details
-
getSource
Returns the source direct position. For performance reasons, the current implementation returns a reference to the internal object. However users should avoid to modify directly the returned position and usesetSource(org.geotools.api.geometry.Position)
instead. -
setSource
Set the source direct position to the specified value. -
getTarget
Returns the target direct position. For performance reasons, the current implementation returns a reference to the internal object. However users should avoid to modify directly the returned position and usesetTarget(org.geotools.api.geometry.Position)
instead. -
setTarget
Set the target direct position to the specified value. -
getComments
Returns the comments attached to this mapping, ornull
if none. -
setComments
Set the comments attached to this mapping. May benull
if none. -
getAccuracy
public double getAccuracy()Returns an estimation of mapping accuracy in units of target CRS axis, orDouble.NaN
if unknow. -
setAccuracy
public void setAccuracy(double accuracy) Set the accuracy. -
hashCode
public int hashCode()Returns a hash code value for this mapped position. -
equals
Compares this mapped position with the specified object for equality. -
toString
Returns a string representation of this mapped position.
-