- java.lang.Object
-
- org.arakhne.afc.gis.location.AbstractGeoLocation
-
- org.arakhne.afc.gis.location.GeoLocationPointList
-
- All Implemented Interfaces:
Comparable<GeoLocation>
,GeoLocation
public final class GeoLocationPointList 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 GeoLocationPointList(double... points)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getX(int index)
Replies the x-location.float
getY(int index)
Replies the y-location.int
hashCode()
int
size()
Replies the count of points.(package private) float[]
toArray()
Replies the coordinates of this geo-location.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
-
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.
-
-