Class BinaryParser
java.lang.Object
io.github.sebasbaumh.postgis.binary.BinaryParser
A parser for reading geometries from a binary or hex string representation.
- Author:
- Sebastian Baumhekel
-
Method Summary
-
Method Details
-
parse
Parse a hex encoded geometry- Parameters:
value
- byte array containing the data to be parsedoffset
- offset- Returns:
- resulting geometry for the parsed data
- Throws:
IllegalArgumentException
- if a contained geometry is of the wrong type or the encoding type is unknown
-
parse
Parse a hex encoded geometry- Parameters:
value
- String containing the data to be parsed- Returns:
- resulting geometry for the parsed data
- Throws:
IllegalArgumentException
- if a contained geometry is of the wrong type or the encoding type is unknown
-