OpenSWMM Engine  6.0.0-alpha.3
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.3)
Loading...
Searching...
No Matches
GeoPackageSchema.hpp
Go to the documentation of this file.
1
10
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
40void create_schema(sqlite3* db);
41
52void register_crs(sqlite3* db, int srs_id, const std::string& org,
53 int org_id, const std::string& srs_name, const std::string& wkt);
54
66void register_feature_table(sqlite3* db, const std::string& table_name,
67 const std::string& geom_type, int srs_id,
68 const std::string& identifier, const std::string& description,
69 double min_x, double min_y, double max_x, double max_y);
70
75void populate_default_variables(sqlite3* db);
76
77} // namespace openswmm::gpkg
78
79#endif // OPENSWMM_GEOPACKAGE_SCHEMA_HPP
Definition ExternalContentReader.cpp:33
void create_schema(sqlite3 *db)
Create all GeoPackage metadata tables and OpenSWMM application tables.
Definition GeoPackageSchema.cpp:1162
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:1189
void populate_default_variables(sqlite3 *db)
Pre-populate the variables catalog with known SWMM output variables.
Definition GeoPackageSchema.cpp:1219
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:1175