@UML(identifier="GM_Position", specification=ISO_19107) public interface Position
Departure from OGC/ISO specification:
ISO 19107 defines
Pointbut unions are not allowed in Java. GeoAPI defines
Positionas the base interface of both types so the two conditional accessor methods,
getDirectPosition(), can be replaced by an
instanceofcheck. However, the
getDirectPosition()has been retained with different semantics, conceptually returning a
DirectPositionat the same location. The conditionality has also been changed to mandatory since all three types conceptually have a well defined location.
@UML(identifier="direct", obligation=CONDITIONAL, specification=ISO_19107) DirectPosition getDirectPosition()
null, but may returns
thisif invoked on an object which is already a
Copyright © 1994–2019 Open Geospatial Consortium. All rights reserved.