33#include "moc_qgsauxiliarystorage.cpp"
35using namespace Qt::StringLiterals;
37#define AS_JOINFIELD u"ASPK"_s
38#define AS_EXTENSION u"qgd"_s
39#define AS_JOINPREFIX u"auxiliary_storage_"_s
82 :
QgsVectorLayer( u
"%1|layername=%2"_s.arg( filename, table ), u
"%1_auxiliarystorage"_s.arg( table ), u
"ogr"_s )
83 , mFileName( filename )
89 mJoinInfo.setJoinLayer(
this );
91 mJoinInfo.setTargetFieldName( pkField );
92 mJoinInfo.setEditable(
true );
93 mJoinInfo.setUpsertOnEdit(
true );
94 mJoinInfo.setCascadedDelete(
true );
95 mJoinInfo.setJoinFieldNamesBlockList( QStringList() << u
"rowid"_s );
101 return new QgsAuxiliaryLayer( mJoinInfo.targetFieldName(), mFileName, target->
id(), target );
116 const QString pkField = mJoinInfo.targetFieldName();
117 QgsFeature joinFeature;
118 QgsFeature targetFeature;
126 QgsFeatureRequest request;
129 mLayer->getFeatures( request ).nextFeature( targetFeature );
133 QgsFeature newFeature( joinFeature );
134 newFeature.setGeometry( targetFeature.
geometry() );
155 if ( ( definition.
name().isEmpty() && definition.
comment().isEmpty() ) ||
exists( definition ) )
161 mLayer->updateFields();
166 const int index = mLayer->fields().indexOf(
nameFromProperty( definition,
true ) );
168 if ( index >= 0 && auxIndex >= 0 )
173 const QgsEditorWidgetSetup setup = QgsEditorWidgetSetup( u
"Hidden"_s, QVariantMap() );
177 QgsAttributeTableConfig attrCfg = mLayer->attributeTableConfig();
178 attrCfg.
update( mLayer->fields() );
179 QVector<QgsAttributeTableConfig::ColumnConfig> columns = attrCfg.
columns();
180 QVector<QgsAttributeTableConfig::ColumnConfig>::iterator it;
182 for ( it = columns.begin(); it != columns.end(); ++it )
184 if ( it->name.compare( mLayer->fields().field( index ).name() ) == 0 )
189 mLayer->setAttributeTableConfig( attrCfg );
193 const QgsEditorWidgetSetup setup = QgsEditorWidgetSetup( u
"Color"_s, QVariantMap() );
251 for (
const QString &providerId : subProviderIds )
253 QgsPalLayerSettings *settings =
new QgsPalLayerSettings( layer->
labeling()->
settings( providerId ) );
258 const QgsProperty existingProperty =
c.
property( property );
262 || overwriteExisting )
265 c.setProperty( property, prop );
271 c.setProperty( property, prop );
301 const QgsProperty existingProperty =
c.property( property );
305 c.setProperty( property, prop );
311 c.setProperty( property, prop );
338 for (
const QString &providerId : subProviderIds )
340 QgsPalLayerSettings *settings =
new QgsPalLayerSettings( layer->
labeling()->
settings( providerId ) );
345 const QgsProperty existingProperty =
c.property( property );
349 c.setProperty( property, prop );
355 c.setProperty( property, prop );
374 if ( def.
origin().compare(
"labeling"_L1 ) == 0 )
377 for (
const int p : palProps )
380 if ( propName.compare( def.
name() ) == 0 )
387 else if ( def.
origin().compare(
"symbol"_L1 ) == 0 )
390 for (
int p : symbolProps )
393 if ( propName.compare( def.
name() ) == 0 )
409 if ( aDef.
origin().compare(
"labeling"_L1 ) == 0 )
412 QgsPropertiesDefinition::const_iterator it = defs.constBegin();
413 for ( ; it != defs.constEnd(); ++it )
415 if ( it->name().compare( aDef.
name(), Qt::CaseInsensitive ) == 0 )
422 else if ( aDef.
origin().compare(
"symbol"_L1 ) == 0 )
425 QgsPropertiesDefinition::const_iterator it = defs.constBegin();
426 for ( ; it != defs.constEnd(); ++it )
428 if ( it->name().compare( aDef.
name(), Qt::CaseInsensitive ) == 0 )
435 else if ( aDef.
origin().compare(
"diagram"_L1 ) == 0 )
438 QgsPropertiesDefinition::const_iterator it = defs.constBegin();
439 for ( ; it != defs.constEnd(); ++it )
441 if ( it->name().compare( aDef.
name(), Qt::CaseInsensitive ) == 0 )
464 QString fieldName = def.
origin();
466 if ( !def.
name().isEmpty() )
467 fieldName = u
"%1_%2"_s.arg( fieldName, def.
name().toLower() );
469 if ( !def.
comment().isEmpty() )
470 fieldName = u
"%1_%2"_s.arg( fieldName, def.
comment() );
482 if ( !def.
name().isEmpty() || !def.
comment().isEmpty() )
484 QMetaType::Type
type = QMetaType::Type::UnknownType;
486 int len( 0 ), precision( 0 );
490 type = QMetaType::Type::QString;
492 typeName = u
"String"_s;
495 type = QMetaType::Type::Double;
498 typeName = u
"Real"_s;
501 type = QMetaType::Type::Int;
502 typeName = u
"Integer"_s;
518 QgsPropertyDefinition def;
519 const QStringList parts = f.
name().split(
'_' );
521 if ( parts.size() <= 1 )
524 const QString origin = parts[0];
525 const QString propertyName = parts[1];
527 if ( origin.compare(
"labeling"_L1, Qt::CaseInsensitive ) == 0 )
530 for (
auto it = props.constBegin(); it != props.constEnd(); ++it )
532 if ( it.value().name().compare( propertyName, Qt::CaseInsensitive ) == 0 )
535 if ( parts.size() >= 3 )
541 else if ( origin.compare(
"symbol"_L1, Qt::CaseInsensitive ) == 0 )
544 for (
auto it = props.constBegin(); it != props.constEnd(); ++it )
546 if ( it.value().name().compare( propertyName, Qt::CaseInsensitive ) == 0 )
549 if ( parts.size() >= 3 )
555 else if ( origin.compare(
"diagram"_L1, Qt::CaseInsensitive ) == 0 )
558 for (
auto it = props.constBegin(); it != props.constEnd(); ++it )
560 if ( it.value().name().compare( propertyName, Qt::CaseInsensitive ) == 0 )
563 if ( parts.size() >= 3 )
575 case QMetaType::Type::Double:
579 case QMetaType::Type::Bool:
583 case QMetaType::Type::QString:
589 if ( parts.size() >= 3 )
601 if ( !def.
name().isEmpty() || !def.
comment().isEmpty() )
621 mFileName = filenameForProject( project );
628 : mFileName( filename )
638 if ( QFile::exists( mTmpFileName ) )
639 QFile::remove( mTmpFileName );
654 if ( mFileName.isEmpty() )
661 if ( QFile::exists( mFileName ) )
662 QFile::remove( mFileName );
664 return QFile::copy( mTmpFileName, mFileName );
677 QgsAuxiliaryLayer *alayer =
nullptr;
679 if ( mValid && layer )
681 const QString table( layer->
id() );
682 sqlite3_database_unique_ptr database;
685 if ( !tableExists( table, database.get() ) )
687 if ( !createTable( field.
typeName(), table, database.get(), mErrorString ) )
703 const QgsDataSourceUri uri = parseOgrUri( ogrUri );
707 sqlite3_database_unique_ptr database;
708 database = openDB( uri.
database() );
712 QString sql = u
"DROP TABLE %1"_s.arg( uri.
table() );
713 rc = exec( sql, database.get() );
716 rc = exec( sql, database.get() );
725 const QgsDataSourceUri uri = parseOgrUri( ogrUri );
730 sqlite3_database_unique_ptr database;
731 database = openDB( uri.
database() );
735 const QString sql = u
"CREATE TABLE %1 AS SELECT * FROM %2"_s.arg( newTable, uri.
table() );
736 rc = exec( sql, database.get() );
750 mErrorString.clear();
752 QFile dest( filename );
753 if ( dest.exists() && !dest.remove() )
755 mErrorString = dest.errorString();
760 if ( !origin.copy( filename ) )
762 mErrorString = origin.errorString();
771 return saveAs( filenameForProject( project ) );
781 const QFileInfo fileinfo( filenameForProject( project ) );
782 return fileinfo.exists() && fileinfo.isFile();
785bool QgsAuxiliaryStorage::exec(
const QString &sql,
sqlite3 *handler )
791 const int err = sqlite3_exec( handler, sql.toStdString().c_str(),
nullptr,
nullptr,
nullptr );
793 if ( err == SQLITE_OK )
796 debugMsg( sql, handler );
802QString QgsAuxiliaryStorage::debugMsg(
const QString &sql,
sqlite3 *handler )
804 const QString err = QString::fromUtf8( sqlite3_errmsg( handler ) );
805 const QString msg = QObject::tr(
"Unable to execute" );
806 const QString errMsg = QObject::tr(
"%1 '%2': %3" ).arg( msg, sql, err );
811bool QgsAuxiliaryStorage::createTable(
const QString &type,
const QString &table,
sqlite3 *handler, QString &errorMsg )
813 const QString sql = u
"CREATE TABLE IF NOT EXISTS '%1' ( '%2' %3 )"_s.arg( table,
AS_JOINFIELD, type );
815 if ( !exec( sql, handler ) )
817 errorMsg = QgsAuxiliaryStorage::debugMsg( sql, handler );
826 sqlite3_database_unique_ptr database;
829 rc = database.
open_v2( filename, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
nullptr );
832 debugMsg( u
"sqlite3_open_v2"_s, database.get() );
836 exec( u
"PRAGMA foreign_keys = 1"_s, database.get() );
843 sqlite3_database_unique_ptr database;
844 const int rc = database.
open_v2( filename, SQLITE_OPEN_READWRITE,
nullptr );
848 debugMsg( u
"sqlite3_open_v2"_s, database.get() );
854bool QgsAuxiliaryStorage::tableExists(
const QString &table,
sqlite3 *handler )
856 const QString sql = u
"SELECT 1 FROM sqlite_master WHERE type='table' AND name='%1'"_s.arg( table );
859 char **results =
nullptr;
860 const int rc = sqlite3_get_table( handler, sql.toStdString().c_str(), &results, &rows, &columns,
nullptr );
861 if ( rc != SQLITE_OK )
863 debugMsg( sql, handler );
867 sqlite3_free_table( results );
876 sqlite3_database_unique_ptr database;
878 if ( filename.isEmpty() )
883 else if ( QFile::exists( filename ) )
886 QFile::copy( filename, mTmpFileName );
902 return open( filenameForProject( project ) );
905QString QgsAuxiliaryStorage::filenameForProject(
const QgsProject &project )
908 const QString path = info.path() + QDir::separator() + info.baseName();
912void QgsAuxiliaryStorage::initTmpFileName()
914 QTemporaryFile tmpFile;
915 if ( !tmpFile.open() )
921 mTmpFileName = tmpFile.fileName();
926 if ( mCopy || mFileName.isEmpty() )
934 QgsDataSourceUri newUri;
938 QStringList uriParts = uri.
uri().split(
'|' );
939 if ( uriParts.count() < 2 )
942 const QString databasePath = uriParts[0].replace(
' ', QString() );
944 const QString table = uriParts[1];
945 QStringList tableParts = table.split(
' ' );
947 if ( tableParts.count() < 1 )
950 const QString tableName = tableParts[0].replace(
"layername="_L1, QString() );
@ Invalid
Invalid (not set) property.
@ Field
Field based property.
@ Expression
Expression based property.
virtual QStringList subProviders() const
Gets list of sub-providers within the layer's labeling.
virtual void setSettings(QgsPalLayerSettings *settings, const QString &providerId=QString())=0
Set pal settings for a specific provider (takes ownership).
virtual QgsPalLayerSettings settings(const QString &providerId=QString()) const =0
Gets associated label settings.
QVector< QgsAttributeTableConfig::ColumnConfig > columns() const
Gets the list with all columns and their configuration.
void update(const QgsFields &fields)
Update the configuration with the given fields.
void setColumns(const QVector< QgsAttributeTableConfig::ColumnConfig > &columns)
Set the list of columns visible in the attribute table.
Allows managing the auxiliary storage for a vector layer.
static QString nameFromProperty(const QgsPropertyDefinition &def, bool joined=false)
Returns the name of the auxiliary field for a property definition.
static QgsField createAuxiliaryField(const QgsPropertyDefinition &definition)
Creates a new auxiliary field from a property definition.
static QgsPropertyDefinition propertyDefinitionFromField(const QgsField &field)
Returns the property definition from an auxiliary field.
bool clear()
Deletes all features from the layer.
bool addAuxiliaryField(const QgsPropertyDefinition &definition)
Adds an auxiliary field for the given property.
bool isHiddenProperty(int index) const
Returns true if the underlying field has to be hidden from editing tools like attribute table,...
QgsVectorLayer * toSpatialLayer() const
An auxiliary layer is not spatial.
bool deleteAttribute(int attr) override
Removes attribute from the layer and commits changes.
QgsFields auxiliaryFields() const
Returns a list of all auxiliary fields currently managed by the layer.
QgsAuxiliaryLayer(const QString &pkField, const QString &filename, const QString &table, QgsVectorLayer *vlayer)
Constructor.
bool save()
Commits changes and starts editing then.
int propertyFromIndex(int index) const
Returns the underlying property key for the field index.
QgsVectorLayerJoinInfo joinInfo() const
Returns information to use for joining with primary key and so on.
QgsVectorLayer * clone() const override
Returns a new instance equivalent to this one.
QgsPropertyDefinition propertyDefinitionFromIndex(int index) const
Returns the property definition for the underlying field index.
bool exists(const QgsPropertyDefinition &definition) const
Returns true if the property is stored in the layer already, false otherwise.
static int createProperty(QgsPalLayerSettings::Property property, QgsVectorLayer *vlayer, bool overwriteExisting=true)
Creates if necessary a new auxiliary field for a PAL property and activates this property in settings...
int indexOfPropertyDefinition(const QgsPropertyDefinition &definition) const
Returns the index of the auxiliary field for a specific property definition.
static QString extension()
Returns the extension used for auxiliary databases.
QString errorString() const
Returns the underlying error string describing potential errors happening in saveAs().
bool save() const
Saves the current database.
static bool exists(const QgsProject &project)
Returns true if the auxiliary database yet exists for a project, false otherwise.
QgsAuxiliaryLayer * createAuxiliaryLayer(const QgsField &field, QgsVectorLayer *layer) const
Creates an auxiliary layer for a vector layer.
virtual ~QgsAuxiliaryStorage()
bool saveAs(const QString &filename)
Saves the current database to a new path.
bool isValid() const
Returns the status of the auxiliary storage currently defined.
QString currentFileName() const
Returns the path of the current database used.
QgsAuxiliaryStorage(const QgsProject &project, bool copy=true)
Constructor.
QString fileName() const
Returns the target filename of the database.
static bool deleteTable(const QgsDataSourceUri &uri)
Removes a table from the auxiliary storage.
static bool duplicateTable(const QgsDataSourceUri &uri, const QString &newTable)
Duplicates a table and its content.
void setDataDefinedProperties(const QgsPropertyCollection &collection)
Sets the callout's property collection, used for data defined overrides.
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the callout's property collection, used for data defined overrides.
static QgsPropertiesDefinition propertyDefinitions()
Returns the definitions for data defined properties available for use in callouts.
Property
Data definable properties.
Stores the component parts of a data source URI (e.g.
QString table() const
Returns the table name stored in the URI.
QString uri(bool expandAuthConfig=true) const
Returns the complete URI as a string.
void setDataSource(const QString &aSchema, const QString &aTable, const QString &aGeometryColumn, const QString &aSql=QString(), const QString &aKeyColumn=QString())
Sets all data source related members at once.
QString database() const
Returns the database name stored in the URI.
void setDatabase(const QString &database)
Sets the URI database name.
Property
Data definable properties.
static const QgsPropertiesDefinition & propertyDefinitions()
Returns the diagram property definitions.
static QString createFieldEqualityExpression(const QString &fieldName, const QVariant &value, QMetaType::Type fieldType=QMetaType::Type::UnknownType)
Create an expression allowing to evaluate if a field is equal to a value.
static QString quotedColumnRef(QString name)
Returns a quoted column reference (in double quotes).
bool nextFeature(QgsFeature &f)
Fetch next feature and stores in f, returns true on success.
QgsFeatureRequest & setFilterExpression(const QString &expression)
Set the filter expression.
virtual QgsFeatureIds allFeatureIds() const
Returns a list of all feature IDs for features present in the source.
bool isValid() const
Returns the validity of this feature.
Q_INVOKABLE QVariant attribute(const QString &name) const
Lookup attribute value by attribute name.
Encapsulate a field in an attribute table or data source.
QString typeName() const
Gets the field type.
void setPrecision(int precision)
Set the field precision.
void setName(const QString &name)
Set the field name.
void setType(QMetaType::Type type)
Set variant type.
void setLength(int len)
Set the field length.
void setTypeName(const QString &typeName)
Set the field type.
Container of fields for a vector layer.
bool append(const QgsField &field, Qgis::FieldOrigin origin=Qgis::FieldOrigin::Provider, int originIndex=-1)
Appends a field.
Q_INVOKABLE int indexOf(const QString &fieldName) const
Gets the field index from the field name.
Q_INVOKABLE int lookupField(const QString &fieldName) const
Looks up field's index from the field name.
QString source() const
Returns the source for the layer.
friend class QgsVectorLayer
static QgsVectorLayer * createMemoryLayer(const QString &name, const QgsFields &fields, Qgis::WkbType geometryType=Qgis::WkbType::NoGeometry, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem(), bool loadDefaultStyle=true) SIP_FACTORY
Creates a new memory layer using the specified parameters.
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the label's property collection, used for data defined overrides.
QgsCallout * callout() const
Returns the label callout renderer, responsible for drawing label callouts.
void setDataDefinedProperties(const QgsPropertyCollection &collection)
Sets the label's property collection, used for data defined overrides.
Property
Data definable properties.
@ PositionX
X-coordinate data defined label position.
@ MinScale
Min scale (deprecated, for old project compatibility only).
@ LabelRotation
Label rotation.
@ FontStyle
Font style name.
@ Italic
Use italic style.
@ PositionY
Y-coordinate data defined label position.
@ Vali
Vertical alignment for data defined label position (Bottom, Base, Half, Cap, Top).
@ MaxScale
Max scale (deprecated, for old project compatibility only).
@ Strikeout
Use strikeout.
@ LabelAllParts
Multipart geometry behavior.
@ Underline
Use underline.
@ Hali
Horizontal alignment for data defined label position (Left, Center, Right).
@ CalloutDraw
Show callout.
static const QgsPropertiesDefinition & propertyDefinitions()
Returns the labeling property definitions.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QString absoluteFilePath() const
Returns full absolute path to the project file if the project is stored in a file system - derived fr...
QgsProperty property(int key) const final
Returns a matching property from the collection, if one exists.
Definition for a property.
StandardPropertyTemplate standardTemplate() const
Returns the property's standard template, if applicable.
QString comment() const
Returns the comment of the property.
DataType dataType() const
Returns the allowable field/value data type for the property.
void setOrigin(const QString &origin)
Sets the origin of the property.
@ ColorNoAlpha
Color with no alpha channel.
@ ColorWithAlpha
Color with alpha channel.
QString name() const
Returns the name of the property.
void setDataType(DataType type)
Sets the data type.
void setName(const QString &name)
Sets the name of the property.
QString origin() const
Returns the origin of the property.
void setComment(const QString &comment)
Sets comment of the property.
@ DataTypeString
Property requires a string value.
@ DataTypeBoolean
Property requires a boolean value.
@ DataTypeNumeric
Property requires a numeric value.
QString asExpression() const
Returns an expression string representing the state of the property, or an empty string if the proper...
QString expressionString() const
Returns the expression used for the property value.
Qgis::PropertyType propertyType() const
Returns the property type.
QString field() const
Returns the current field name the property references.
static QgsProperty fromExpression(const QString &expression, bool isActive=true)
Returns a new ExpressionBasedProperty created from the specified expression.
static QgsProperty fromField(const QString &fieldName, bool isActive=true)
Returns a new FieldBasedProperty created from the specified field name.
static const QgsPropertiesDefinition & propertyDefinitions()
Returns the symbol layer property definitions.
Defines left outer join from our vector layer to some other vector layer.
Represents a vector layer which manages a vector based dataset.
bool isEditable() const final
Returns true if the provider is in editing mode.
Q_INVOKABLE bool deleteFeatures(const QgsFeatureIds &fids, QgsVectorLayer::DeleteContext *context=nullptr)
Deletes a set of features from the layer (but does not commit it).
Q_INVOKABLE bool startEditing()
Makes the layer editable.
Q_INVOKABLE bool addAttribute(const QgsField &field)
Add an attribute field (but does not commit it) returns true if the field was added.
void updateFields()
Will regenerate the fields property of this layer by obtaining all fields from the dataProvider,...
const QgsDiagramLayerSettings * diagramLayerSettings() const
QgsAuxiliaryLayer * auxiliaryLayer()
Returns the current auxiliary layer.
const QgsAbstractVectorLayerLabeling * labeling() const
Access to const labeling configuration.
virtual Q_INVOKABLE bool deleteAttribute(int attr)
Deletes an attribute field (but does not commit it).
void setEditorWidgetSetup(int index, const QgsEditorWidgetSetup &setup)
Sets the editor widget setup for the field at the specified index.
Q_INVOKABLE bool commitChanges(bool stopEditing=true)
Attempts to commit to the underlying data provider any buffered changes made since the last to call t...
QgsEditorWidgetSetup editorWidgetSetup(int index) const
Returns the editor widget setup for the field at the specified index.
QgsFeatureIterator getFeatures(const QgsFeatureRequest &request=QgsFeatureRequest()) const final
Queries the layer for features specified in request.
void setDiagramLayerSettings(const QgsDiagramLayerSettings &s)
bool addFeature(QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) final
Adds a single feature to the sink.
Unique pointer for sqlite3 databases, which automatically closes the database when the pointer goes o...
int open_v2(const QString &path, int flags, const char *zVfs)
Opens the database at the specified file path.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
Q_GLOBAL_STATIC_WITH_ARGS(PalPropertyList, palHiddenProperties,({ static_cast< int >(QgsPalLayerSettings::Property::PositionX), static_cast< int >(QgsPalLayerSettings::Property::PositionY), static_cast< int >(QgsPalLayerSettings::Property::Show), static_cast< int >(QgsPalLayerSettings::Property::LabelRotation), static_cast< int >(QgsPalLayerSettings::Property::Family), static_cast< int >(QgsPalLayerSettings::Property::FontStyle), static_cast< int >(QgsPalLayerSettings::Property::Size), static_cast< int >(QgsPalLayerSettings::Property::Bold), static_cast< int >(QgsPalLayerSettings::Property::Italic), static_cast< int >(QgsPalLayerSettings::Property::Underline), static_cast< int >(QgsPalLayerSettings::Property::Color), static_cast< int >(QgsPalLayerSettings::Property::Strikeout), static_cast< int >(QgsPalLayerSettings::Property::MultiLineAlignment), static_cast< int >(QgsPalLayerSettings::Property::BufferSize), static_cast< int >(QgsPalLayerSettings::Property::BufferDraw), static_cast< int >(QgsPalLayerSettings::Property::BufferColor), static_cast< int >(QgsPalLayerSettings::Property::LabelDistance), static_cast< int >(QgsPalLayerSettings::Property::Hali), static_cast< int >(QgsPalLayerSettings::Property::Vali), static_cast< int >(QgsPalLayerSettings::Property::ScaleVisibility), static_cast< int >(QgsPalLayerSettings::Property::MinScale), static_cast< int >(QgsPalLayerSettings::Property::MaxScale), static_cast< int >(QgsPalLayerSettings::Property::AlwaysShow), static_cast< int >(QgsPalLayerSettings::Property::CalloutDraw), static_cast< int >(QgsPalLayerSettings::Property::LabelAllParts) })) Q_GLOBAL_STATIC_WITH_ARGS(SymbolPropertyList
QVector< int > SymbolPropertyList
QVector< int > PalPropertyList
#define QgsDebugError(str)
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.