57 ReadLayerMetadata = 1 << 0,
58 WriteLayerMetadata = 1 << 1,
59 CreateRenderer = 1 << 2,
60 ContainSubIndexes = 1 << 3,
63 Q_DECLARE_FLAGS( Capabilities, Capability )
78 QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags() );
108 QVector<QMap<QString, QVariant>> res = sipCpp->identify( a0, *a1, *a2, a3 );
109 sipRes = PyList_New( res.size() );
110 for (
int i = 0; i < res.size(); ++i )
112 PyObject *dict = PyDict_New();
113 for ( QString key : res[i].keys() )
115 PyObject *keyObj = sipConvertFromNewType(
new QString( key ), sipType_QString, Py_None );
116 PyObject *valObj = sipConvertFromNewType(
new QVariant( res[i][key] ), sipType_QVariant, Py_None );
117 PyDict_SetItem( dict, keyObj, valObj );
119 PyList_SET_ITEM( sipRes, i, dict );
128 virtual QgsPointCloudDataProvider::Capabilities capabilities()
const;
175 virtual QVector<QgsPointCloudSubIndex>
subIndexes()
SIP_SKIP {
return QVector<QgsPointCloudSubIndex>(); }
190 bool hasValidIndex()
const;
216 virtual QVariantMap originalMetadata()
const;
238 virtual
bool hasStatisticsMetadata() const;
252 virtual QVariant metadataStatistic(
const QString &attribute,
Qgis::Statistic statistic )
const;
265 SIP_PYOBJECT metadataStatistic(
const QString &attribute,
Qgis::Statistic statistic )
const;
268 const QVariant res = sipCpp->metadataStatistic( *a0, a1 );
269 if ( !res.isValid() )
271 PyErr_SetString( PyExc_ValueError, QStringLiteral(
"Statistic is not available" ).toUtf8().constData() );
276 QVariant *v =
new QVariant( res );
277 sipRes = sipConvertFromNewType( v, sipType_QVariant, Py_None );
291 virtual QVariantList metadataClasses(
const QString &attribute )
const;
306 virtual QVariant metadataClassStatistic(
const QString &attribute,
const QVariant &value,
Qgis::Statistic statistic )
const;
319 SIP_PYOBJECT metadataClassStatistic(
const QString &attribute,
const QVariant &value,
Qgis::Statistic statistic )
const;
322 const QVariant res = sipCpp->metadataClassStatistic( *a0, *a1, a2 );
323 if ( !res.isValid() )
325 PyErr_SetString( PyExc_ValueError, QStringLiteral(
"Statistic is not available" ).toUtf8().constData() );
330 QVariant *v =
new QVariant( res );
331 sipRes = sipConvertFromNewType( v, sipType_QVariant, Py_None );
346 bool setSubsetString(
const QString &subset,
bool updateFeatureCount =
false )
override;
354 static QMap< int, QString > lasClassificationCodes();
362 static QMap< int, QString > translatedLasClassificationCodes();
369 static QMap< int, QString > dataFormatIds();
376 static QMap< int, QString > translatedDataFormatIds();