Class GeoLocationPointList

    • Constructor Detail

      • GeoLocationPointList

        public GeoLocationPointList​(double... points)
        Constructor.
        Parameters:
        points - the points.
    • Method Detail

      • toGeoId

        @Pure
        public GeoId toGeoId()
        Description copied from interface: GeoLocation
        Replies the GeoId representation of the geo-location.
        Returns:
        the GeoId representation of this location
      • size

        @Pure
        public int size()
        Replies the count of points.
        Returns:
        the count of points.
      • getX

        @Pure
        public float getX​(int index)
        Replies the x-location.
        Parameters:
        index - is the index of the point
        Returns:
        x
      • getY

        @Pure
        public float getY​(int index)
        Replies the y-location.
        Parameters:
        index - is the index of the point
        Returns:
        y
      • toBounds2D

        @Pure
        public Rectangle2d toBounds2D()
        Description copied from interface: GeoLocation
        Replies the area cover by this location.
        Returns:
        the bounds
      • toGeodesicPosition

        @Pure
        public GeodesicPosition toGeodesicPosition()
        Description copied from interface: GeoLocation
        Replies the WSG84 (GPS) representation of this point.

        If this GeoLocation is not a point, the implementation class should provides a significant GPS point.

        Returns:
        the WSG84 (GPS) representation of this point; or null if the GPS point could not be computed.
      • toArray

        @Pure
        float[] toArray()
        Replies the coordinates of this geo-location.
        Returns:
        the coordinates of this geo-location.