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
featuretypes.cpp File Reference
#include "feature/featuretypes.h"
#include <ogr_core.h>
#include <QCoreApplication>
#include <QJsonArray>
#include <QJsonValue>
#include <QSet>
Include dependency graph for featuretypes.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::feature
 

Functions

QString openswmmvis::feature::fieldTypeLabel (FieldType t)
 
QString openswmmvis::feature::fieldTypeToken (FieldType t)
 
FieldType openswmmvis::feature::fieldTypeFromToken (const QString &token)
 
int openswmmvis::feature::ogrFieldTypeFor (FieldType t)
 
QVariant openswmmvis::feature::coerceToFieldType (const QVariant &v, FieldType t)
 
QString openswmmvis::feature::sanitizeFieldName (const QString &raw)
 Make raw safe as an OGR/GeoPackage column name: ASCII letters, digits and underscore, never starting with a digit, at most 63 characters, never one of the reserved names ("fid", "geom").
 
QString openswmmvis::feature::sanitizeTableName (const QString &raw)
 Make raw safe as a GeoPackage table name, on the same rules as sanitizeFieldName plus a "fl_" prefix when raw would otherwise start with a digit.
 

Detailed Description

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