public class GeoJSONGeometryWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
GeoJSONGeometryWriter()
Constructs a new GeoJSONGeometryWriter object with default settings.
|
GeoJSONGeometryWriter(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(GeoJSONGeometryWriter obj) |
Projection |
getSourceProjection()
Returns the current source projection.
|
boolean |
getZ()
Returns the state of Z coordinate serialization.
|
void |
setSourceProjection(Projection proj)
Sets the current source projection.
|
void |
setZ(boolean z)
Sets the state of Z coordinate serialization.
|
java.lang.String |
writeGeometry(Geometry geometry)
Creates a GeoJSON string corresponding to the specified geometry.
|
public GeoJSONGeometryWriter(long cPtr, boolean cMemoryOwn)
public GeoJSONGeometryWriter()
public static long getCPtr(GeoJSONGeometryWriter obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public Projection getSourceProjection()
public void setSourceProjection(Projection proj)
proj
- The new source projection or null.public boolean getZ()
public void setZ(boolean z)
z
- True when Z coordinate should be serialized, false otherwise.public java.lang.String writeGeometry(Geometry geometry)
geometry
- The geometry to write.