- java.lang.Object
-
- org.arakhne.afc.gis.location.AbstractGeoLocation
-
- org.arakhne.afc.gis.location.GeoLocationPoint
-
- All Implemented Interfaces:
Comparable<GeoLocation>,GeoLocation
public final class GeoLocationPoint extends AbstractGeoLocation
Describes a geo-localized feature.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:53
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- giscore
-
-
Constructor Summary
Constructors Constructor Description GeoLocationPoint(double x, double y)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point2dgetPoint()Replies the point.floatgetX()Replies the X-coordinate.floatgetY()Replies the Y-coordinate.inthashCode()Rectangle2dtoBounds2D()Replies the area cover by this location.GeodesicPositiontoGeodesicPosition()Replies the WSG84 (GPS) representation of this point.GeoIdtoGeoId()Replies the GeoId representation of the geo-location.-
Methods inherited from class org.arakhne.afc.gis.location.AbstractGeoLocation
compareTo, equals, toString, toUUID
-
-
-
-
Method Detail
-
toGeoId
@Pure public GeoId toGeoId()
Description copied from interface:GeoLocationReplies the GeoId representation of the geo-location.- Returns:
- the GeoId representation of this location
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classAbstractGeoLocation
-
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:GeoLocationReplies the area cover by this location.- Returns:
- the bounds
-
toGeodesicPosition
@Pure public GeodesicPosition toGeodesicPosition()
Description copied from interface:GeoLocationReplies 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
nullif the GPS point could not be computed.
-
-