Package org.geotools.data.teradata
Class WKBAttributeIO
- Object
-
- WKBAttributeIO
-
public class WKBAttributeIO extends Object
An attribute IO implementation that can manage the WKB- Since:
- 2.4.1
- Author:
- Andrea Aime
-
-
Constructor Summary
Constructors Constructor Description WKBAttributeIO()
WKBAttributeIO(GeometryFactory gf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static byte
getFromChar(char c)
Turns a char that encodes four bits in hexadecimal notation into a byteGeometry
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)
-
-
-
Constructor Detail
-
WKBAttributeIO
public WKBAttributeIO()
-
WKBAttributeIO
public WKBAttributeIO(GeometryFactory gf)
-
-
Method Detail
-
wkb2Geometry
public Geometry wkb2Geometry(byte[] wkbBytes) throws IOException
This method will convert a Well Known Binary representation to a JTS Geometry object.- Returns:
- a JTS Geometry object that is equivalent to the WTB representation passed in by param wkb
- Throws:
IOException
- if more than one geometry object was found in the WTB representation, or if the parser could not parse the WKB representation.
-
wkb2Geometry
public Geometry wkb2Geometry(InputStream inputStream) throws IOException
- Throws:
IOException
-
read
public Geometry read(ResultSet rs, String columnName) throws IOException
- Throws:
IOException
-
read
public Geometry read(ResultSet rs, int columnIndex) throws IOException
- Throws:
IOException
-
write
public void write(PreparedStatement ps, int position, Object value) throws IOException
- Throws:
IOException
-
getFromChar
public static byte getFromChar(char c)
Turns a char that encodes four bits in hexadecimal notation into a byte
-
-