public final class Point extends Geometry
Constructor | Description |
---|---|
Point(CoordinateReferenceSystem coordinateReferenceSystem,
Position coordinate) |
Construct an instance with the given coordinate and coordinate reference system.
|
Point(Position coordinate) |
Construct an instance with the given coordinate.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
Position |
getCoordinates() |
Gets the GeoJSON coordinates of this point.
|
Position |
getPosition() |
Gets the position of this point.
|
GeoJsonObjectType |
getType() |
Gets the GeoJSON object type.
|
int |
hashCode() |
|
String |
toString() |
getCoordinateReferenceSystem, toJson
public Point(Position coordinate)
coordinate
- the non-null coordinate of the pointpublic Point(@Nullable CoordinateReferenceSystem coordinateReferenceSystem, Position coordinate)
coordinateReferenceSystem
- the coordinate reference systemcoordinate
- the non-null coordinate of the pointpublic GeoJsonObjectType getType()
Geometry
public Position getCoordinates()
public Position getPosition()