@UML(identifier="GM_Position", specification=ISO_19107) public interface Position
Departure from OGC/ISO specification:
ISO 19107 definesPositionas aunionofDirectPositionandPointbut unions are not allowed in Java. GeoAPI definesPositionas the base interface of both types so the two conditional accessor methods,getPoint()andgetDirectPosition(), can be replaced by aninstanceofcheck. However, thegetDirectPosition()has been retained with different semantics, conceptually returning aDirectPositionat the same location. The conditionality has also been changed to mandatory since all three types conceptually have a well defined location.
| Modifier and Type | Method and Description |
|---|---|
DirectPosition |
getDirectPosition()
Returns the direct position.
|
@UML(identifier="direct", obligation=CONDITIONAL, specification=ISO_19107) DirectPosition getDirectPosition()
null, but may returns
this if invoked on an object which is already a DirectPosition instance.this).Copyright © 1994–2019 Open Geospatial Consortium. All rights reserved.