public class DB2WKBWriter extends Object
Version of JTS WKB Writer adjusted for DB2
for JTS Java Doc
Constructor and Description |
---|
DB2WKBWriter(boolean hasOGCWkbZTyps)
Creates a writer that writes
Geometry using BIG_ENDIAN byte order. |
DB2WKBWriter(int byteOrder,
boolean hasOGCWkbZTyps)
Creates a writer that writes
Geometry s in the given byte order If the input geometry
has a small coordinate dimension, coordinates will be padded with NULL_ORDINATE . |
Modifier and Type | Method and Description |
---|---|
static String |
bytesToHex(byte[] bytes) |
int |
getOutputDimension() |
static int |
guessCoordinateDimension(Geometry g)
returns the coordinate dimension for a geometry
|
byte[] |
write(Geometry geom)
Writes a
Geometry into a byte array. |
void |
write(Geometry geom,
OutStream os)
Writes a
Geometry to an OutStream . |
public DB2WKBWriter(boolean hasOGCWkbZTyps)
Geometry
using BIG_ENDIAN
byte order. If the
input geometry has a small coordinate dimension, coordinates will be padded with NULL_ORDINATE
.public DB2WKBWriter(int byteOrder, boolean hasOGCWkbZTyps)
Geometry
s in the given byte order If the input geometry
has a small coordinate dimension, coordinates will be padded with NULL_ORDINATE
.byteOrder
- the byte ordering to usepublic static final int guessCoordinateDimension(Geometry g)
Geometry
- gpublic static String bytesToHex(byte[] bytes)
public byte[] write(Geometry geom)
Geometry
into a byte array.geom
- the geometry to writepublic void write(Geometry geom, OutStream os) throws IOException
Geometry
to an OutStream
.geom
- the geometry to writeos
- the out stream to write toIOException
- if an I/O error occurspublic int getOutputDimension()
Copyright © 1996–2019 Geotools. All rights reserved.