58 ReadLayerMetadata = 1 << 0,
59 WriteLayerMetadata = 1 << 1,
60 CreateRenderer = 1 << 2,
61 ContainSubIndexes = 1 << 3,
64 Q_DECLARE_FLAGS( Capabilities, Capability )
79 QgsDataProvider::ReadFlags flags = QgsDataProvider::ReadFlags() );
109 QVector<QMap<QString, QVariant>> res = sipCpp->identify( a0, *a1, *a2, a3 );
110 sipRes = PyList_New( res.size() );
111 for (
int i = 0; i < res.size(); ++i )
113 PyObject *dict = PyDict_New();
114 for ( QString key : res[i].keys() )
116 PyObject *keyObj = sipConvertFromNewType(
new QString( key ), sipType_QString, Py_None );
117 PyObject *valObj = sipConvertFromNewType(
new QVariant( res[i][key] ), sipType_QVariant, Py_None );
118 PyDict_SetItem( dict, keyObj, valObj );
120 PyList_SET_ITEM( sipRes, i, dict );
129 virtual QgsPointCloudDataProvider::Capabilities capabilities()
const;
176 virtual QVector<QgsPointCloudSubIndex>
subIndexes()
SIP_SKIP {
return QVector<QgsPointCloudSubIndex>(); }
191 bool hasValidIndex()
const;
217 virtual QVariantMap originalMetadata()
const;
239 virtual
bool hasStatisticsMetadata() const;
269 const QVariant res = sipCpp->metadataStatistic( *a0, a1 );
270 if ( !res.isValid() )
272 PyErr_SetString( PyExc_ValueError, QStringLiteral(
"Statistic is not available" ).toUtf8().constData() );
277 QVariant *v =
new QVariant( res );
278 sipRes = sipConvertFromNewType( v, sipType_QVariant, Py_None );
292 virtual QVariantList metadataClasses(
const QString &attribute )
const;
323 const QVariant res = sipCpp->metadataClassStatistic( *a0, *a1, a2 );
324 if ( !res.isValid() )
326 PyErr_SetString( PyExc_ValueError, QStringLiteral(
"Statistic is not available" ).toUtf8().constData() );
331 QVariant *v =
new QVariant( res );
332 sipRes = sipConvertFromNewType( v, sipType_QVariant, Py_None );
347 bool setSubsetString(
const QString &subset,
bool updateFeatureCount =
false )
override;
355 static QMap< int, QString > lasClassificationCodes();
363 static QMap< int, QString > translatedLasClassificationCodes();
370 static QMap< int, QString > dataFormatIds();
377 static QMap< int, QString > translatedDataFormatIds();