- 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 Point2d
getPoint()
Replies the point.float
getX()
Replies the X-coordinate.float
getY()
Replies the Y-coordinate.int
hashCode()
Rectangle2d
toBounds2D()
Replies the area cover by this location.GeodesicPosition
toGeodesicPosition()
Replies the WSG84 (GPS) representation of this point.GeoId
toGeoId()
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:GeoLocation
Replies the GeoId representation of the geo-location.- Returns:
- the GeoId representation of this location
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in 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: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.
-
-