Class Point


  • public final class Point
    extends Geometry
    A representation of a GeoJSON Point.
    Since:
    3.1
    • Constructor Detail

      • Point

        public Point​(Position coordinate)
        Construct an instance with the given coordinate.
        Parameters:
        coordinate - the non-null coordinate of the point
      • Point

        public Point​(@Nullable
                     CoordinateReferenceSystem coordinateReferenceSystem,
                     Position coordinate)
        Construct an instance with the given coordinate and coordinate reference system.
        Parameters:
        coordinateReferenceSystem - the coordinate reference system
        coordinate - the non-null coordinate of the point
    • Method Detail

      • getCoordinates

        public Position getCoordinates()
        Gets the GeoJSON coordinates of this point.
        Returns:
        the coordinates
      • getPosition

        public Position getPosition()
        Gets the position of this point.
        Returns:
        the position