- All Known Subinterfaces:
DirectPosition
@Deprecated(since="3.1")
@Classifier(UNION)
@UML(identifier="GM_Position",
specification=ISO_19107,
version=2003)
public interface Position
Deprecated.
A type consisting of either a direct position or of a point from which a direct position shall be obtained.
The use of this data type allows the identification of a position either directly as a coordinate tuple
(variant direct) or indirectly as a point (variant indirect).
- Since:
- 1.0
Departure from OGC/ISO standard due to constraint of the Java language
ISO 19107 definesPosition as a union of DirectPosition and Point
but unions are not allowed in Java. GeoAPI defines Position as the base interface of both
types, and the Java instanceof operation should be used for determining the type.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the direct position.
-
Method Details
-
getDirectPosition
@UML(identifier="direct", obligation=CONDITIONAL, specification=ISO_19107) DirectPosition getDirectPosition()Deprecated.Returns the direct position. This method shall never returnnull, but may returnthisif invoked on an object which is already aDirectPositioninstance.- Returns:
- the direct position (may be
this).
-
GM_Positionunion has been removed in ISO 19107:2019.