public class ExtendedWKBReader extends Object
WKBReader
, that differentiates between
LinearRing
s and LineString
s.Constructor and Description |
---|
ExtendedWKBReader()
Default constructor
|
ExtendedWKBReader(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
Create an extended WKB reader with the given geometry factory.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
hexToBytes(String hex)
Converts a hexadecimal string to a byte array.
|
com.vividsolutions.jts.geom.Geometry |
read(byte[] bytes)
Reads a single
Geometry in WKB format from a byte array. |
com.vividsolutions.jts.geom.Geometry |
read(com.vividsolutions.jts.io.InStream is)
Reads a
Geometry in binary WKB format from an InStream . |
public ExtendedWKBReader()
public ExtendedWKBReader(com.vividsolutions.jts.geom.GeometryFactory geometryFactory)
geometryFactory
- the geometry factorypublic static byte[] hexToBytes(String hex)
hex
- a string containing hex digitspublic com.vividsolutions.jts.geom.Geometry read(byte[] bytes) throws com.vividsolutions.jts.io.ParseException
Geometry
in WKB format from a byte array.bytes
- the byte array to read fromcom.vividsolutions.jts.io.ParseException
- if the WKB is ill-formedpublic com.vividsolutions.jts.geom.Geometry read(com.vividsolutions.jts.io.InStream is) throws IOException, com.vividsolutions.jts.io.ParseException
Geometry
in binary WKB format from an InStream
.is
- the stream to read fromIOException
- if the underlying stream creates an errorcom.vividsolutions.jts.io.ParseException
- if the WKB is ill-formedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a