public abstract class Geometry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CoordinateReferenceSystem |
coordinateReferenceSystem |
private static CodecRegistry |
REGISTRY |
Modifier | Constructor and 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 and Description |
---|---|
boolean |
equals(java.lang.Object o) |
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Gets the coordinate reference system, which may be null
|
(package private) static CodecRegistry |
getRegistry() |
abstract GeoJsonObjectType |
getType()
Gets the GeoJSON object type.
|
int |
hashCode() |
java.lang.String |
toJson()
Converts to GeoJSON representation
|
private static final CodecRegistry REGISTRY
private final CoordinateReferenceSystem coordinateReferenceSystem
protected Geometry()
protected Geometry(CoordinateReferenceSystem coordinateReferenceSystem)
coordinateReferenceSystem
- the coordinate reference systempublic abstract GeoJsonObjectType getType()
public java.lang.String toJson()
static CodecRegistry getRegistry()
public CoordinateReferenceSystem getCoordinateReferenceSystem()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object