java.lang.Object | |
↳ | com.carto.geometry.WKBGeometryWriter |
A WKB writer. Generates binary version of the Well Known Text (WKT) representation of the geometry.
Supports both 2D and 3D coordinate serialization and big- and little-endian representations.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WKBGeometryWriter()
Constructs a new WKBGeometryWriter objects with default settings.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
getBigEndian()
Returns the endianness of output format.
| ||||||||||
boolean |
getZ()
Returns the state of Z coordinate serialization.
| ||||||||||
void |
setBigEndian(boolean bigEndian)
Sets the endianness of output format.
| ||||||||||
void |
setZ(boolean z)
Sets the state of Z coordinate serialization.
| ||||||||||
BinaryData |
writeGeometry(Geometry geometry)
Creates a WKB data corresponding to the specified geometry.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a new WKBGeometryWriter objects with default settings.
Returns the endianness of output format.
Returns the state of Z coordinate serialization.
Sets the endianness of output format.
bigEndian | True if big-endian representation should be used, false if little-endian. |
---|
Sets the state of Z coordinate serialization.
z | True when Z coordinate should be serialized, false otherwise. |
---|
Creates a WKB data corresponding to the specified geometry.
geometry | The geometry to write. |
---|
Exception | If writing fails. |
---|