|
static OGRFieldDomainH | convertFieldDomain (const QgsFieldDomain *domain) |
| Converts a QGIS field domain definition to an OGR field domain equivalent. More...
|
|
static std::unique_ptr< QgsFieldDomain > | convertFieldDomain (OGRFieldDomainH domain) |
| Converts an OGR field domain definition to a QgsFieldDomain equivalent. More...
|
|
static OGRSpatialReferenceH | crsToOGRSpatialReference (const QgsCoordinateReferenceSystem &crs) |
| Returns a OGRSpatialReferenceH corresponding to the specified crs object. More...
|
|
static QStringList | cStringListToQStringList (char **stringList) |
| Converts a c string list to a QStringList. More...
|
|
static QVariant | getOgrFeatureAttribute (OGRFeatureH ogrFet, const QgsField &field, int attIndex, QTextCodec *encoding, bool *ok=nullptr) |
| Retrieves an attribute value from an OGR feature, using a provided field definition. More...
|
|
static QVariant | getOgrFeatureAttribute (OGRFeatureH ogrFet, const QgsFields &fields, int attIndex, QTextCodec *encoding, bool *ok=nullptr) |
| Retrieves an attribute value from an OGR feature. More...
|
|
static QList< QgsVectorDataProvider::NativeType > | nativeFieldTypesForDriver (GDALDriverH driver) |
| Returns the list of native field types supported for a driver. More...
|
|
static QVariant | OGRFieldtoVariant (const OGRField *value, OGRFieldType type) |
| Converts an OGRField value of the specified type into a QVariant. More...
|
|
static void | ogrFieldTypeToQVariantType (OGRFieldType ogrType, OGRFieldSubType ogrSubType, QVariant::Type &variantType, QVariant::Type &variantSubType) |
| Converts an OGR field type and sub type to the best matching QVariant::Type equivalent. More...
|
|
static QgsGeometry | ogrGeometryToQgsGeometry (OGRGeometryH geom) |
| Converts an OGR geometry representation to a QgsGeometry object. More...
|
|
static QgsWkbTypes::Type | ogrGeometryTypeToQgsWkbType (OGRwkbGeometryType ogrGeomType) |
| Converts a OGRwkbGeometryType to QgsWkbTypes::Type. More...
|
|
static QgsCoordinateReferenceSystem | OGRSpatialReferenceToCrs (OGRSpatialReferenceH srs) |
| Returns a QgsCoordinateReferenceSystem corresponding to the specified OGR srs object, or an invalid QgsCoordinateReferenceSystem if srs could not be converted. More...
|
|
static QString | OGRSpatialReferenceToWkt (OGRSpatialReferenceH srs) |
| Returns a WKT string corresponding to the specified OGR srs object. More...
|
|
static QVariantMap | parseStyleString (const QString &string) |
| Parses an OGR style string to a variant map containing the style string components. More...
|
|
static QgsFeature | readOgrFeature (OGRFeatureH ogrFet, const QgsFields &fields, QTextCodec *encoding) |
| Reads an OGR feature and converts it to a QgsFeature. More...
|
|
static bool | readOgrFeatureAttributes (OGRFeatureH ogrFet, const QgsFields &fields, QgsFeature &feature, QTextCodec *encoding) |
| Reads all attributes from an OGR feature into a QgsFeature. More...
|
|
static bool | readOgrFeatureGeometry (OGRFeatureH ogrFet, QgsFeature &feature) |
| Reads the geometry from an OGR feature into a QgsFeature. More...
|
|
static QgsFields | readOgrFields (OGRFeatureH ogrFet, QTextCodec *encoding) |
| Reads an OGR feature and returns a corresponding fields collection. More...
|
|
static QString | readShapefileEncoding (const QString &path) |
| Reads the encoding of the shapefile at the specified path (where path is the location of the ".shp" file). More...
|
|
static QString | readShapefileEncodingFromCpg (const QString &path) |
| Reads the encoding of the shapefile at the specified path (where path is the location of the ".shp" file), from the CPG specified encoding. More...
|
|
static QString | readShapefileEncodingFromLdid (const QString &path) |
| Reads the encoding of the shapefile at the specified path (where path is the location of the ".shp" file), from the DBF LDID encoding. More...
|
|
static QgsFeatureList | stringToFeatureList (const QString &string, const QgsFields &fields, QTextCodec *encoding) |
| Attempts to parse a string representing a collection of features using OGR. More...
|
|
static QgsFields | stringToFields (const QString &string, QTextCodec *encoding) |
| Attempts to retrieve the fields from a string representing a collection of features using OGR. More...
|
|
static QVariant | stringToVariant (OGRFieldType type, OGRFieldSubType subType, const QString &string) |
| Converts a string to a variant, using the provider OGR field type and subType to determine the most appropriate variant type. More...
|
|
static std::unique_ptr< QgsSymbol > | symbolFromStyleString (const QString &string, Qgis::SymbolType type) |
| Creates a new QgsSymbol matching an OGR style string. More...
|
|
static std::unique_ptr< OGRField > | variantToOGRField (const QVariant &value) |
| Converts a QVariant to an OGRField value. More...
|
|
static void | variantTypeToOgrFieldType (QVariant::Type variantType, OGRFieldType &ogrType, OGRFieldSubType &ogrSubType) |
| Converts an QVariant type to the best matching OGR field type and sub type. More...
|
|