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 TypeMethodDescriptionbooleanCompares this mapped position with the specified object for equality.doubleReturns an estimation of mapping accuracy in units of target CRS axis, orDouble.NaNif unknow.Returns the comments attached to this mapping, ornullif none.Returns the source direct position.Returns the target direct position.inthashCode()Returns a hash code value for this mapped position.voidsetAccuracy(double accuracy) Set the accuracy.voidsetComments(String comments) Set the comments attached to this mapping.voidSet the source direct position to the specified value.voidSet 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, ornullif none. -
setComments
Set the comments attached to this mapping. May benullif none. -
getAccuracy
public double getAccuracy()Returns an estimation of mapping accuracy in units of target CRS axis, orDouble.NaNif 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.
-