SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
vectorexport.cpp File Reference

Widget-free writer behind the layer tree's Export entries (workplans/FEATURE_LAYER_ROLES_AND_FIELDS_PLAN_2026-09-30.md §8.5, R8). More...

#include "io/vectorexport.h"
#include "io/gdaldrivers.h"
#include <cpl_conv.h>
#include <cpl_error.h>
#include <gdal_priv.h>
#include <gdal_utils.h>
#include <ogr_feature.h>
#include <ogr_geometry.h>
#include <ogr_spatialref.h>
#include <ogrsf_frmts.h>
#include <QCoreApplication>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QSet>
#include <QTextStream>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for vectorexport.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::io
 

Functions

QStringList openswmmvis::io::shortFieldNames (const QStringList &names, int maxLen=10)
 Shapefile field names: at most maxLen characters and unique (case-insensitively), in order. "invertElev" stays; "surchargeDepth" becomes "surchargeD", a second one "surcharg_1".
 
QString openswmmvis::io::exportPathFor (const ExportOptions &options, const QString &tableName)
 Compute a table output path using the curated format metadata.
 
bool openswmmvis::io::exportVectorTables (const QVector< ExportTable > &tables, const ExportOptions &options, const ExportProgress &progress, ExportReport *report)
 Write tables to options.destination.
 
bool openswmmvis::io::exportVectorLayer (const VectorLayerSource &source, const ExportOptions &options, const ExportProgress &progress, ExportReport *report)
 Translate source into options.destination, reprojecting when options.targetSrsWkt is set. Same cancel and cleanup contract.
 
bool openswmmvis::io::exportRaster (const QString &sourcePath, const QString &destination, const QString &targetSrsWkt, const ExportProgress &progress, ExportReport *report)
 Write raster sourcePath to GeoTIFF destination, warped to targetSrsWkt when it is set (plan Q10). Same contract.
 

Detailed Description

Widget-free writer behind the layer tree's Export entries (workplans/FEATURE_LAYER_ROLES_AND_FIELDS_PLAN_2026-09-30.md §8.5, R8).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License
GPL-3.0-or-later

Variable Documentation

◆ base

int base = 0

◆ cancelled

bool cancelled = false

◆ progress

const ExportProgress* progress = nullptr

◆ span

int span = 100

◆ total

int total = 100

◆ what

QString what