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)
200 static QVariant OGRFieldtoVariant(
const OGRField *value, OGRFieldType type );
209 static std::unique_ptr<OGRField> variantToOGRField(
const QVariant &value, OGRFieldType type );
216 static int OGRTZFlagFromQt(
const QDateTime &datetime );
225 static QgsFeature readOgrFeature( OGRFeatureH ogrFet,
const QgsFields &fields, QTextCodec *encoding );
233 static QgsFields readOgrFields( OGRFeatureH ogrFet, QTextCodec *encoding );
245 static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet,
const QgsFields &fields,
int attIndex, QTextCodec *encoding,
bool *ok =
nullptr );
259 static QVariant getOgrFeatureAttribute( OGRFeatureH ogrFet,
const QgsField &field,
int attIndex, QTextCodec *encoding,
bool *ok =
nullptr );
270 static bool readOgrFeatureAttributes( OGRFeatureH ogrFet,
const QgsFields &fields,
QgsFeature &feature, QTextCodec *encoding );
280 static bool readOgrFeatureGeometry( OGRFeatureH ogrFet,
QgsFeature &feature );
289 static QgsGeometry ogrGeometryToQgsGeometry( OGRGeometryH geom );
300 static QgsFeatureList stringToFeatureList(
const QString &
string,
const QgsFields &fields, QTextCodec *encoding );
309 static QgsFields stringToFields(
const QString &
string, QTextCodec *encoding );
316 static QStringList cStringListToQStringList(
char **stringList );
323 static Qgis::WkbType ogrGeometryTypeToQgsWkbType( OGRwkbGeometryType ogrGeomType );
362 static QString readShapefileEncoding(
const QString &path );
373 static QString readShapefileEncodingFromCpg(
const QString &path );
384 static QString readShapefileEncodingFromLdid(
const QString &path );
391 static QVariantMap parseStyleString(
const QString &
string );
411 static void ogrFieldTypeToQVariantType( OGRFieldType ogrType, OGRFieldSubType ogrSubType, QVariant::Type &variantType, QVariant::Type &variantSubType )
SIP_SKIP;
423 static void variantTypeToOgrFieldType( QVariant::Type variantType, OGRFieldType &ogrType, OGRFieldSubType &ogrSubType )
SIP_SKIP;
432 static QVariant stringToVariant( OGRFieldType type, OGRFieldSubType subType,
const QString &
string )
SIP_SKIP;
439 static QList<QgsVectorDataProvider::NativeType> nativeFieldTypesForDriver( GDALDriverH driver )
SIP_SKIP;
442#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,3,0)
451 static std::unique_ptr< QgsFieldDomain > convertFieldDomain( OGRFieldDomainH domain );
460 static OGRFieldDomainH convertFieldDomain(
const QgsFieldDomain *domain );
465#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,6,0)
474 static QgsWeakRelation convertRelationship( GDALRelationshipH relationship,
const QString &datasetUri );
492 static int listStyles(
GDALDatasetH hDS,
const QString &layerName,
493 const QString &geomColumn, QStringList &ids, QStringList &names,
494 QStringList &descriptions, QString &errCause );
501 static bool styleExists(
GDALDatasetH hDS,
const QString &layerName,
const QString &geomColumn,
const QString &styleId, QString &errorCause );
508 static QString getStyleById(
GDALDatasetH hDS,
const QString &styleId, QString &errCause );
515 static bool saveStyle(
GDALDatasetH hDS,
const QString &layerName,
516 const QString &geomColumn,
const QString &qmlStyle,
const QString &sldStyle,
517 const QString &styleName,
const QString &styleDescription,
518 const QString &uiFileContent,
bool useAsDefault, QString &errCause
526 static bool deleteStyleById(
GDALDatasetH hDS,
const QString &styleId, QString &errCause );
533 static QString loadStoredStyle(
GDALDatasetH hDS,
const QString &layerName,
const QString &geomColumn, QString &styleName, QString &errCause );
Base class for field domains.