1#ifndef NGEN_GEOPACKAGE_H 
    2#define NGEN_GEOPACKAGE_H 
    4#include "FeatureCollection.hpp" 
    5#include "ngen_sqlite.hpp" 
   20    const std::string& geom_col,
 
   21    std::vector<double>& bounding_box
 
   33    const std::string& geom_col
 
   45    const std::string& id_col,
 
   46    const std::string& geom_col
 
   57std::shared_ptr<geojson::FeatureCollection> 
read(
 
   58    const std::string& gpkg_path,
 
   59    const std::string& layer,
 
   60    const std::vector<std::string>& ids
 
 
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