Class DirectPositionView
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.geometry.AbstractDirectPosition
org.apache.sis.internal.referencing.DirectPositionView
- All Implemented Interfaces:
org.opengis.geometry.coordinate.Position,org.opengis.geometry.DirectPosition
- Direct Known Subclasses:
DirectPositionView.Double,DirectPositionView.Float
A read-only direct position wrapping an array without performing any copy.
This class shall be used for temporary objects only (it is not serializable for this reason).
- Since:
- 0.5
- Version:
- 1.0
- Author:
- Martin Desruisseaux (Geomatys)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe double-precision version ofDirectPositionView.static final classThe single-precision version ofDirectPositionView. -
Field Summary
FieldsModifier and TypeFieldDescriptionintThe index of the first value in the coordinates array. -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns the dimension given at construction time.Methods inherited from class org.apache.sis.geometry.AbstractDirectPosition
castOrCopy, equals, formatTo, getCoordinate, getCoordinateReferenceSystem, getDirectPosition, hashCode, normalize, setLocation, setOrdinate, toStringMethods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toWKTMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opengis.geometry.DirectPosition
getOrdinate
-
Field Details
-
offset
public int offsetThe index of the first value in the coordinates array. This field is non-final in order to allow the caller to move the view over an array of coordinates.
-
-
Method Details
-
getDimension
public final int getDimension()Returns the dimension given at construction time.- Returns:
- number of dimensions.
-