Interface Position

All Known Subinterfaces:

public interface Position

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 (variant direct) or indirectly as a point (variant indirect).

GeoAPI 1.0
Departure from OGC/ISO specification:
ISO 19107 defines Position as a union of DirectPosition and Point but unions are not allowed in Java. GeoAPI defines Position as the base interface of both types so the two conditional accessor methods, getPoint() and getDirectPosition(), can be replaced by an instanceof check. However, the getDirectPosition() has been retained with different semantics, conceptually returning a DirectPosition at the same location. The conditionality has also been changed to mandatory since all three types conceptually have a well defined location.

Method Summary
 DirectPosition getDirectPosition()
          Returns the direct position.

Method Detail


DirectPosition getDirectPosition()
Returns the direct position. This method shall never returns null, but may returns this if invoked on an object which is already a DirectPosition instance.

The direct position (may be this).
GeoAPI 2.2

Copyright © 1994-2011 Open Geospatial Consortium. All Rights Reserved.