Package org.geotools.data.teradata
Class WKBAttributeIO
Object
WKBAttributeIO
An attribute IO implementation that can manage the WKB
- Since:
- 2.4.1
- Author:
- Andrea Aime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte
getFromChar
(char c) Turns a char that encodes four bits in hexadecimal notation into a bytewkb2Geometry
(byte[] wkbBytes) This method will convert a Well Known Binary representation to a JTS Geometry object.wkb2Geometry
(InputStream inputStream) void
write
(PreparedStatement ps, int position, Object value)
-
Constructor Details
-
WKBAttributeIO
public WKBAttributeIO() -
WKBAttributeIO
-
-
Method Details
-
wkb2Geometry
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
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
getFromChar
public static byte getFromChar(char c) Turns a char that encodes four bits in hexadecimal notation into a byte
-