OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
GeoPackageSchema.hpp
Go to the documentation of this file.
1
11#ifndef OPENSWMM_GEOPACKAGE_SCHEMA_HPP
12#define OPENSWMM_GEOPACKAGE_SCHEMA_HPP
13
14#include <sqlite3.h>
15#include <string>
16
17namespace openswmm::gpkg {
18
33void create_schema(sqlite3* db);
34
45void register_crs(sqlite3* db, int srs_id, const std::string& org,
46 int org_id, const std::string& srs_name, const std::string& wkt);
47
59void register_feature_table(sqlite3* db, const std::string& table_name,
60 const std::string& geom_type, int srs_id,
61 const std::string& identifier, const std::string& description,
62 double min_x, double min_y, double max_x, double max_y);
63
68void populate_default_variables(sqlite3* db);
69
70} // namespace openswmm::gpkg
71
72#endif // OPENSWMM_GEOPACKAGE_SCHEMA_HPP
Definition GeoPackageInputPlugin.cpp:15
void create_schema(sqlite3 *db)
Create all GeoPackage metadata tables and OpenSWMM application tables.
Definition GeoPackageSchema.cpp:523
void register_feature_table(sqlite3 *db, const std::string &table_name, const std::string &geom_type, int srs_id, const std::string &identifier, const std::string &description, double min_x, double min_y, double max_x, double max_y)
Register a feature table in gpkg_contents and gpkg_geometry_columns.
Definition GeoPackageSchema.cpp:548
void populate_default_variables(sqlite3 *db)
Pre-populate the variables catalog with known SWMM output variables.
Definition GeoPackageSchema.cpp:578
void register_crs(sqlite3 *db, int srs_id, const std::string &org, int org_id, const std::string &srs_name, const std::string &wkt)
Register a CRS in gpkg_spatial_ref_sys (if not already present).
Definition GeoPackageSchema.cpp:534