GeometryCollection
, LineString
, MultiLineString
, MultiPoint
, MultiPolygon
, Point
, Polygon
public abstract class Geometry extends Object
Modifier | Constructor | Description |
---|---|---|
protected |
Geometry() |
Construct an instance with no specified coordinate reference system.
|
protected |
Geometry(CoordinateReferenceSystem coordinateReferenceSystem) |
Construct an instance with the specified coordinate reference system.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
CoordinateReferenceSystem |
getCoordinateReferenceSystem() |
Gets the coordinate reference system, which may be null
|
abstract GeoJsonObjectType |
getType() |
Gets the GeoJSON object type.
|
int |
hashCode() |
|
String |
toJson() |
Converts to GeoJSON representation
|
protected Geometry()
protected Geometry(@Nullable CoordinateReferenceSystem coordinateReferenceSystem)
coordinateReferenceSystem
- the coordinate reference systempublic abstract GeoJsonObjectType getType()
public String toJson()
@Nullable public CoordinateReferenceSystem getCoordinateReferenceSystem()