public class WKBAttributeIO extends Object
| Constructor and Description |
|---|
WKBAttributeIO() |
WKBAttributeIO(GeometryFactory gf) |
| Modifier and Type | Method and Description |
|---|---|
static byte |
getFromChar(char c)
Turns a char that encodes four bits in hexadecimal notation into a byte
|
Geometry |
read(ResultSet rs,
int columnIndex) |
Geometry |
read(ResultSet rs,
String columnName) |
Geometry |
wkb2Geometry(byte[] wkbBytes)
This method will convert a Well Known Binary representation to a JTS Geometry object.
|
Geometry |
wkb2Geometry(InputStream inputStream) |
void |
write(PreparedStatement ps,
int position,
Object value) |
public WKBAttributeIO()
public WKBAttributeIO(GeometryFactory gf)
public Geometry wkb2Geometry(byte[] wkbBytes)
throws IOException
IOException - if more than one geometry object was found in the WTB representation, or
if the parser could not parse the WKB representation.public Geometry wkb2Geometry(InputStream inputStream) throws IOException
IOExceptionpublic Geometry read(ResultSet rs, String columnName) throws IOException
IOExceptionorg.geotools.data.jdbc.attributeio.AttributeIO#read(java.sql.ResultSet, int)public Geometry read(ResultSet rs, int columnIndex) throws IOException
IOExceptionorg.geotools.data.jdbc.attributeio.AttributeIO#read(java.sql.ResultSet, int)public void write(PreparedStatement ps, int position, Object value) throws IOException
IOExceptionorg.geotools.data.jdbc.attributeio.AttributeIO#write(java.sql.PreparedStatement, int,
java.lang.Object)public static byte getFromChar(char c)
c - Copyright © 1996–2019 Geotools. All rights reserved.