|
NGen
|
Functions | |
| void | require_column (const geopackage::GeoPackageReader &reader, const std::string &layer, const std::string &column, const std::string &version) |
Throw unless layer of reader carries column. | |
| void | alias_property (geojson::PropertyMap &properties, const std::string &from, const std::string &to) |
Copy the value of from onto to, leaving any existing entry alone. | |
| void ngen::hydrofabric::anonymous_namespace{GeoPackageHydrofabricReader.cpp}::alias_property | ( | geojson::PropertyMap & | properties, |
| const std::string & | from, | ||
| const std::string & | to ) |
Copy the value of from onto to, leaving any existing entry alone.
| [in,out] | properties | Property map to update |
| [in] | from | Property name to read |
| [in] | to | Property name to publish the value under |
References alias_property().
Referenced by alias_property().
| void ngen::hydrofabric::anonymous_namespace{GeoPackageHydrofabricReader.cpp}::require_column | ( | const geopackage::GeoPackageReader & | reader, |
| const std::string & | layer, | ||
| const std::string & | column, | ||
| const std::string & | version ) |
Throw unless layer of reader carries column.
| [in] | reader | Reader for the GeoPackage holding the layer |
| [in] | layer | Layer to inspect |
| [in] | column | Column the caller's schema version requires |
| [in] | version | Version label to name in the error; pass version_label() |
| std::runtime_error | if the column is absent |
References ngen::sqlite::database::columns(), ngen::geopackage::GeoPackageReader::db(), and require_column().
Referenced by require_column().