public final class Point extends Geometry
Constructor and 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 and Description |
---|---|
boolean |
equals(java.lang.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() |
java.lang.String |
toString() |
getCoordinateReferenceSystem, toJson
public Point(Position coordinate)
coordinate
- the non-null coordinate of the pointpublic Point(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()
public java.lang.String toString()
toString
in class java.lang.Object