NGen
Loading...
Searching...
No Matches
geopackage.hpp
1#ifndef NGEN_GEOPACKAGE_H
2#define NGEN_GEOPACKAGE_H
3
4#include "FeatureCollection.hpp"
5#include "ngen_sqlite.hpp"
6
7namespace ngen {
8namespace geopackage {
9
20 const std::string& geom_col,
21 std::vector<double>& bounding_box
22);
23
33 const std::string& geom_col
34);
35
45 const std::string& id_col,
46 const std::string& geom_col
47);
48
57std::shared_ptr<geojson::FeatureCollection> read(
58 const std::string& gpkg_path,
59 const std::string& layer,
60 const std::vector<std::string>& ids
61);
62
63} // namespace geopackage
64} // namespace ngen
65#endif // NGEN_GEOPACKAGE_H
boost::variant< coordinate_t, linestring_t, polygon_t, multipoint_t, multilinestring_t, multipolygon_t > geometry
Definition JSONGeometry.hpp:66
std::map< std::string, JSONProperty > PropertyMap
Shorthand for a mapping between strings and properties.
Definition JSONProperty.hpp:21
std::shared_ptr< FeatureBase > Feature
An easy name for a smart pointer for FeatureBase and its children.
Definition FeatureBase.hpp:34
std::shared_ptr< geojson::FeatureCollection > read(const std::string &gpkg_path, const std::string &layer, const std::vector< std::string > &ids)
Build a feature collection from a GPKG layer.
Definition read.cpp:18
geojson::PropertyMap build_properties(const ngen::sqlite::database::iterator &row, const std::string &geom_col)
Build properties from GeoPackage table columns.
Definition properties.cpp:22
geojson::geometry build_geometry(const ngen::sqlite::database::iterator &row, const std::string &geom_col, std::vector< double > &bounding_box)
Build a geometry object from GeoPackage WKB.
Definition geometry.cpp:6
geojson::Feature build_feature(const ngen::sqlite::database::iterator &row, const std::string &id_col, const std::string &geom_col)
Build a feature from a GPKG table row.
Definition feature.cpp:13
Definition DomainLayer.hpp:9
Definition ngen_sqlite.hpp:43