49 void CORE_EXPORT
operator()( OGRDataSourceH source )
const;
62 void CORE_EXPORT
operator()( OGRGeometryH geometry )
const;
75 void CORE_EXPORT
operator()( OGRFieldDefnH definition )
const;
88 void CORE_EXPORT
operator()( OGRFeatureH feature )
const;
114 void CORE_EXPORT
operator()( GDALWarpOptions *options )
const;
118#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,6,0)
129 void CORE_EXPORT
operator()( GDALRelationshipH relationship )
const;
174#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,6,0)
199 static QVariant OGRFieldtoVariant(
const OGRField *value, OGRFieldType type );
208 static std::unique_ptr<OGRField> variantToOGRField(
const QVariant &value, OGRFieldType type );
215 static int OGRTZFlagFromQt(
const QDateTime &datetime );
224 static QgsFeature readOgrFeature( OGRFeatureH ogrFet,
const QgsFields &fields, QTextCodec *encoding );
232 static QgsFields readOgrFields( OGRFeatureH ogrFet, QTextCodec *encoding );
244 static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet,
const QgsFields &fields,
int attIndex, QTextCodec *encoding,
bool *ok =
nullptr );
258 static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet,
const QgsField &field,
int attIndex, QTextCodec *encoding,
bool *ok =
nullptr );
269 static bool readOgrFeatureAttributes( OGRFeatureH ogrFet,
const QgsFields &fields,
QgsFeature &feature, QTextCodec *encoding );
279 static bool readOgrFeatureGeometry( OGRFeatureH ogrFet,
QgsFeature &feature );
288 static QgsGeometry ogrGeometryToQgsGeometry( OGRGeometryH geom );
299 static QgsFeatureList stringToFeatureList(
const QString &
string,
const QgsFields &fields, QTextCodec *encoding );
308 static QgsFields stringToFields(
const QString &
string, QTextCodec *encoding );
315 static QStringList cStringListToQStringList(
char **stringList );
322 static Qgis::WkbType ogrGeometryTypeToQgsWkbType( OGRwkbGeometryType ogrGeomType );
361 static QString readShapefileEncoding(
const QString &path );
372 static QString readShapefileEncodingFromCpg(
const QString &path );
383 static QString readShapefileEncodingFromLdid(
const QString &path );
390 static QVariantMap parseStyleString(
const QString &
string );
410 static void ogrFieldTypeToQVariantType( OGRFieldType ogrType, OGRFieldSubType ogrSubType, QMetaType::Type &variantType, QMetaType::Type &variantSubType )
SIP_SKIP;
422 static void variantTypeToOgrFieldType( QMetaType::Type variantType, OGRFieldType &ogrType, OGRFieldSubType &ogrSubType )
SIP_SKIP;
431 static QVariant stringToVariant( OGRFieldType type, OGRFieldSubType subType,
const QString &
string )
SIP_SKIP;
438 static QList<QgsVectorDataProvider::NativeType> nativeFieldTypesForDriver( GDALDriverH driver )
SIP_SKIP;
441#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,3,0)
450 static std::unique_ptr< QgsFieldDomain > convertFieldDomain( OGRFieldDomainH domain );
459 static OGRFieldDomainH convertFieldDomain(
const QgsFieldDomain *domain );
464#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,6,0)
473 static QgsWeakRelation convertRelationship( GDALRelationshipH relationship,
const QString &datasetUri );
491 static int listStyles(
GDALDatasetH hDS,
const QString &layerName,
492 const QString &geomColumn, QStringList &ids, QStringList &names,
493 QStringList &descriptions, QString &errCause );
500 static bool styleExists(
GDALDatasetH hDS,
const QString &layerName,
const QString &geomColumn,
const QString &styleId, QString &errorCause );
507 static QString getStyleById(
GDALDatasetH hDS,
const QString &styleId, QString &errCause );
514 static bool saveStyle(
GDALDatasetH hDS,
const QString &layerName,
515 const QString &geomColumn,
const QString &qmlStyle,
const QString &sldStyle,
516 const QString &styleName,
const QString &styleDescription,
517 const QString &uiFileContent,
bool useAsDefault, QString &errCause
525 static bool deleteStyleById(
GDALDatasetH hDS,
const QString &styleId, QString &errCause );
532 static QString loadStoredStyle(
GDALDatasetH hDS,
const QString &layerName,
const QString &geomColumn, QString &styleName, QString &errCause );
Base class for field domains.