54 ReadLayerMetadata = 1 << 0,
55 WriteLayerMetadata = 1 << 1,
56 CreateRenderer = 1 << 2,
57 ContainSubIndexes = 1 << 3,
105 QVector<QMap<QString, QVariant>> res = sipCpp->identify( a0, *a1, *a2, a3 );
106 sipRes = PyList_New( res.size() );
107 for (
int i = 0; i < res.size(); ++i )
109 PyObject *dict = PyDict_New();
110 for ( QString key : res[i].keys() )
112 PyObject *keyObj = sipConvertFromNewType(
new QString( key ), sipType_QString, Py_None );
113 PyObject *valObj = sipConvertFromNewType(
new QVariant( res[i][key] ), sipType_QVariant, Py_None );
114 PyDict_SetItem( dict, keyObj, valObj );
116 PyList_SET_ITEM( sipRes, i, dict );
172 virtual QVector<QgsPointCloudSubIndex>
subIndexes()
SIP_SKIP {
return QVector<QgsPointCloudSubIndex>(); }
187 bool hasValidIndex()
const;
213 virtual QVariantMap originalMetadata()
const;
235 virtual
bool hasStatisticsMetadata() const;
249 virtual QVariant metadataStatistic(
const QString &attribute,
Qgis::Statistic statistic )
const;
262 SIP_PYOBJECT metadataStatistic(
const QString &attribute,
Qgis::Statistic statistic )
const;
265 const QVariant res = sipCpp->metadataStatistic( *a0, a1 );
266 if ( !res.isValid() )
268 PyErr_SetString( PyExc_ValueError, QStringLiteral(
"Statistic is not available" ).toUtf8().constData() );
273 QVariant *v =
new QVariant( res );
274 sipRes = sipConvertFromNewType( v, sipType_QVariant, Py_None );
288 virtual QVariantList metadataClasses(
const QString &attribute )
const;
303 virtual QVariant metadataClassStatistic(
const QString &attribute,
const QVariant &value,
Qgis::Statistic statistic )
const;
316 SIP_PYOBJECT metadataClassStatistic(
const QString &attribute,
const QVariant &value,
Qgis::Statistic statistic )
const;
319 const QVariant res = sipCpp->metadataClassStatistic( *a0, *a1, a2 );
320 if ( !res.isValid() )
322 PyErr_SetString( PyExc_ValueError, QStringLiteral(
"Statistic is not available" ).toUtf8().constData() );
327 QVariant *v =
new QVariant( res );
328 sipRes = sipConvertFromNewType( v, sipType_QVariant, Py_None );
345 bool setSubsetString(
const QString &subset,
bool updateFeatureCount =
false )
override;
353 static QMap< int, QString > lasClassificationCodes();
361 static QMap< int, QString > translatedLasClassificationCodes();
368 static QMap< int, QString > dataFormatIds();
375 static QMap< int, QString > translatedDataFormatIds();