java.lang.Object | |
↳ | com.carto.geometry.WKTGeometryWriter |
Generates Well Known Text (WKT) representation of the geometry.
Supports both 2D and 3D coordinate serialization.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WKTGeometryWriter()
Constructs a new WKTGeometryWriter objects with default settings.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
getZ()
Returns the state of Z coordinate serialization.
| ||||||||||
void |
setZ(boolean z)
Sets the state of Z coordinate serialization.
| ||||||||||
String |
writeGeometry(Geometry geometry)
Creates a WKT string corresponding to the specified geometry.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a new WKTGeometryWriter objects with default settings.
Returns the state of Z coordinate serialization.
Sets the state of Z coordinate serialization.
z | True when Z coordinate should be serialized, false otherwise. |
---|
Creates a WKT string corresponding to the specified geometry.
geometry | The geometry to write. |
---|
Exception | If writing fails. |
---|