public class GeoJSONGeometryWriter
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
swigCMemOwn |
构造器和说明 |
---|
GeoJSONGeometryWriter()
Constructs a new GeoJSONGeometryWriter object with default settings.
|
GeoJSONGeometryWriter(long cPtr,
boolean cMemoryOwn) |
限定符和类型 | 方法和说明 |
---|---|
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 |
writeFeature(Feature feature)
Creates a GeoJSON string corresponding to the specified feature.
|
java.lang.String |
writeFeatureCollection(FeatureCollection featureCollection)
Creates a GeoJSON string corresponding to the specified feature collection.
|
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
在类中 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.java.lang.Exception
- If string could not be generated.public java.lang.String writeFeature(Feature feature)
feature
- The feature to write.java.lang.Exception
- If string could not be generated.public java.lang.String writeFeatureCollection(FeatureCollection featureCollection)
featureCollection
- The feature collection to write.java.lang.Exception
- If string could not be generated.