Class GeoLocationPoint

    • Constructor Detail

      • GeoLocationPoint

        public GeoLocationPoint​(double x,
                                double y)
        Constructor.
        Parameters:
        x - x coordinate.
        y - y coordinate.
    • 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
      • getX

        @Pure
        public float getX()
        Replies the X-coordinate.
        Returns:
        x
      • getY

        @Pure
        public float getY()
        Replies the Y-coordinate.
        Returns:
        y
      • getPoint

        @Pure
        public Point2d getPoint()
        Replies the point.
        Returns:
        the point
      • 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.