|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.db2.DB2WKBWriter
public class DB2WKBWriter
for JTS Java Doc
Constructor Summary | |
---|---|
DB2WKBWriter(boolean hasOGCWkbZTyps)
Creates a writer that writes Geometry s with
output dimension = 2 and BIG_ENDIAN byte order |
|
DB2WKBWriter(int outputDimension,
boolean hasOGCWkbZTyps)
Creates a writer that writes Geometry s with
the given dimension (2 or 3) for output coordinates
and BIG_ENDIAN byte order. |
|
DB2WKBWriter(int outputDimension,
int byteOrder,
boolean hasOGCWkbZTyps)
Creates a writer that writes Geometry s with
the given dimension (2 or 3) for output coordinates
and byte order
If the input geometry has a small coordinate dimension,
coordinates will be padded with NULL_ORDINATE . |
Method Summary | |
---|---|
static java.lang.String |
bytesToHex(byte[] bytes)
|
static int |
guessCoorinateDims(com.vividsolutions.jts.geom.Geometry g)
returns the coordinate dimension for a geometry |
byte[] |
write(com.vividsolutions.jts.geom.Geometry geom)
Writes a Geometry into a byte array. |
void |
write(com.vividsolutions.jts.geom.Geometry geom,
com.vividsolutions.jts.io.OutStream os)
Writes a Geometry to an OutStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DB2WKBWriter(boolean hasOGCWkbZTyps)
Geometry
s with
output dimension = 2 and BIG_ENDIAN byte order
public DB2WKBWriter(int outputDimension, boolean hasOGCWkbZTyps)
Geometry
s with
the given dimension (2 or 3) for output coordinates
and BIG_ENDIAN
byte order.
If the input geometry has a small coordinate dimension,
coordinates will be padded with NULL_ORDINATE
.
outputDimension
- the coordinate dimension to output (2 or 3)public DB2WKBWriter(int outputDimension, int byteOrder, boolean hasOGCWkbZTyps)
Geometry
s with
the given dimension (2 or 3) for output coordinates
and byte order
If the input geometry has a small coordinate dimension,
coordinates will be padded with NULL_ORDINATE
.
outputDimension
- the coordinate dimension to output (2 or 3)byteOrder
- the byte ordering to useMethod Detail |
---|
public static final int guessCoorinateDims(com.vividsolutions.jts.geom.Geometry g)
Geometry
- g
public static java.lang.String bytesToHex(byte[] bytes)
public byte[] write(com.vividsolutions.jts.geom.Geometry geom)
Geometry
into a byte array.
geom
- the geometry to write
public void write(com.vividsolutions.jts.geom.Geometry geom, com.vividsolutions.jts.io.OutStream os) throws java.io.IOException
Geometry
to an OutStream
.
geom
- the geometry to writeos
- the out stream to write to
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |