A recursive WKB reader.
More...
#include <wkb.hpp>
|
static geometry | read (const boost::span< const uint8_t > buffer) |
| Read WKB from a given buffer.
|
|
|
static point_t | read_point (const boost::span< const uint8_t >, int &, uint8_t) |
| Read a WKB point into a cartesian model.
|
|
static linestring_t | read_linestring (const boost::span< const uint8_t >, int &, uint8_t) |
| Read a WKB linestring into a cartesian model.
|
|
static polygon_t | read_polygon (const boost::span< const uint8_t >, int &, uint8_t) |
| Read a WKB polygon into a cartesian model.
|
|
static multipoint_t | read_multipoint (const boost::span< const uint8_t >, int &, uint8_t) |
| Read a WKB multipoint into a cartesian model.
|
|
static multilinestring_t | read_multilinestring (const boost::span< const uint8_t >, int &, uint8_t) |
| Read a WKB multilinestring into a cartesian model.
|
|
static multipolygon_t | read_multipolygon (const boost::span< const uint8_t >, int &, uint8_t) |
| Read a WKB multipolygon into a cartesian model.
|
|
A recursive WKB reader.
- Note
- This WKB implementation follows a subset of the OGC Specification found in https://www.ogc.org/standard/sfa/. This is a strict WKB implementation and does not support Extended WKB (EWKB) or Tiny WKB (TWKB).
◆ byte_t
◆ byte_vector
◆ geometry
Initial value: boost::variant<
>
bg::model::multi_linestring< linestring_t > multilinestring_t
Definition wkb.hpp:27
bg::model::point< double, 2, bg::cs::cartesian > point_t
Definition wkb.hpp:23
bg::model::multi_polygon< polygon_t > multipolygon_t
Definition wkb.hpp:28
bg::model::multi_point< point_t > multipoint_t
Definition wkb.hpp:26
bg::model::linestring< point_t > linestring_t
Definition wkb.hpp:24
bg::model::polygon< point_t > polygon_t
Definition wkb.hpp:25
◆ linestring_t
◆ multilinestring_t
◆ multipoint_t
◆ multipolygon_t
◆ point_t
◆ polygon_t
◆ wkb()
ngen::geopackage::wkb::wkb |
( |
| ) |
|
|
delete |
◆ read()
wkb::geometry ngen::geopackage::wkb::read |
( |
const boost::span< const uint8_t > | buffer | ) |
|
|
static |
Read WKB from a given buffer.
- Parameters
-
[in] | buffer | byte vector buffer |
- Returns
- geometry wkb::geometry struct containing the geometry data from the buffer
References utils::copy_from(), ngen::geopackage::linestring, ngen::geopackage::multilinestring, ngen::geopackage::multipoint, ngen::geopackage::multipolygon, ngen::geopackage::point, ngen::geopackage::polygon, read_linestring(), read_multilinestring(), read_multipoint(), read_multipolygon(), read_point(), and read_polygon().
◆ read_linestring()
wkb::linestring_t ngen::geopackage::wkb::read_linestring |
( |
const boost::span< const uint8_t > | buffer, |
|
|
int & | index, |
|
|
uint8_t | order ) |
|
staticprivate |
◆ read_multilinestring()
wkb::multilinestring_t ngen::geopackage::wkb::read_multilinestring |
( |
const boost::span< const uint8_t > | buffer, |
|
|
int & | index, |
|
|
uint8_t | order ) |
|
staticprivate |
◆ read_multipoint()
wkb::multipoint_t ngen::geopackage::wkb::read_multipoint |
( |
const boost::span< const uint8_t > | buffer, |
|
|
int & | index, |
|
|
uint8_t | order ) |
|
staticprivate |
◆ read_multipolygon()
wkb::multipolygon_t ngen::geopackage::wkb::read_multipolygon |
( |
const boost::span< const uint8_t > | buffer, |
|
|
int & | index, |
|
|
uint8_t | order ) |
|
staticprivate |
◆ read_point()
wkb::point_t ngen::geopackage::wkb::read_point |
( |
const boost::span< const uint8_t > | buffer, |
|
|
int & | index, |
|
|
uint8_t | order ) |
|
staticprivate |
◆ read_polygon()
wkb::polygon_t ngen::geopackage::wkb::read_polygon |
( |
const boost::span< const uint8_t > | buffer, |
|
|
int & | index, |
|
|
uint8_t | order ) |
|
staticprivate |
The documentation for this struct was generated from the following files:
- include/geopackage/wkb.hpp
- src/geopackage/wkb.cpp