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

Writes a SimulationContext to GeoPackage (all SWMM input sections). More...

#include "GeoPackageWriter.hpp"
#include "GeoPackageSchema.hpp"
#include "GpkgUtils.hpp"
#include "GpkgGeometry.hpp"
#include "core/SimulationContext.hpp"
#include "core/UnitConversion.hpp"
#include "data/NodeData.hpp"
#include "data/LinkData.hpp"
#include "data/SubcatchData.hpp"
#include "data/GageData.hpp"
#include "data/TableData.hpp"
#include "data/PollutantData.hpp"
#include "data/InflowData.hpp"
#include <cmath>
#include <cstdio>
#include <string>
#include "data/HydrologyData.hpp"
#include "core/DateTime.hpp"
Include dependency graph for GeoPackageWriter.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::gpkg
 

Functions

void openswmm::gpkg::write_model (sqlite3 *db, const SimulationContext &ctx, const std::string &simulation_id, int srs_id=0)
 Write the full model definition from a SimulationContext into a GeoPackage.
 
int openswmm::gpkg::write_to_file (const std::string &path, const SimulationContext &ctx, const std::string &simulation_id)
 Convenience: create a new GeoPackage file, write schema + model.
 

Detailed Description

Writes a SimulationContext to GeoPackage (all SWMM input sections).