class WkbWriter extends java.lang.Object
Write a geoscript.geom.Geometry to a WKB hex String or byte array.
WkbWriter writer = new WkbWriter() String wkb = writer.write(new geoscript.geom.Point(111,-47) "0000000001405BC00000000000C047800000000000"
Modifiers | Name | Description |
---|---|---|
static int |
BIG_ENDIAN |
The big endian byte order constant |
static int |
LITTLE_ENDIAN |
The little endian byte order constant |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
write(Geometry geom) Write the Geometry to WKB hex String
|
|
[B |
writeBytes(Geometry geom) Write the Geometry to WKB byte array
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The big endian byte order constant
The little endian byte order constant
Create a new WkbWriter with an output dimension of 2 and big endian byte order.
Create a new WkbWriter with an output dimension and byte order.
outputDimension
- The output dimension (2 or 3)byteOrder
- The byte order (BIG_ENDIAN or LITTLE_ENDIAN)