OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
GeoPackageSchema.cpp File Reference

DDL implementation for the OpenSWMM GeoPackage schema. More...

#include "GeoPackageSchema.hpp"
#include "GpkgUtils.hpp"
Include dependency graph for GeoPackageSchema.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::gpkg
 

Functions

void openswmm::gpkg::create_schema (sqlite3 *db)
 Create all GeoPackage metadata tables and OpenSWMM application tables.
 
void openswmm::gpkg::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).
 
void openswmm::gpkg::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.
 
void openswmm::gpkg::populate_default_variables (sqlite3 *db)
 Pre-populate the variables catalog with known SWMM output variables.
 

Detailed Description

DDL implementation for the OpenSWMM GeoPackage schema.