|
SFCGAL
2.3.0
|
read WKB geometry More...
#include <WkbReader.h>
Public Member Functions | |
| WkbReader (std::istream &wkbString, bool asHexString=false) | |
| read WKB from input stream More... | |
| auto | readWkb () -> void |
| Read and parse WKB data from input stream. More... | |
| auto | geometry () -> std::unique_ptr< SFCGAL::Geometry > |
| Returns the geometry from the (E)WKB. More... | |
| auto | preparedGeometry () -> std::unique_ptr< SFCGAL::PreparedGeometry > |
| Returns the prepared geometry from the (E)WKB. More... | |
| auto | srid () const -> srid_t |
| Returns the srid from the (E)WKB. More... | |
read WKB geometry
|
inline |
read WKB from input stream
| wkbString | hexadecimal ascii string or binary string |
| asHexString | if false, will read the wkb as binary string, else will read the string as hex ascii string (ie. 2 chars for 1 byte with values matching [0-9A-F] |
|
inline |
Returns the geometry from the (E)WKB.
Must be used after readWkb
|
inline |
Returns the prepared geometry from the (E)WKB.
Must be used after readWkb
|
inline |
Read and parse WKB data from input stream.
Parses the WKB header, handles endianness, and constructs the geometry. Must be called before accessing geometry(), preparedGeometry(), or srid().
|
inline |
Returns the srid from the (E)WKB.
Must be used after readWkb
1.8.10