Skip to content
Permalink
Browse files

[afs] Correctly advertise SelectAtId capability

Big speedup for attribute table loading with provider
  • Loading branch information
nyalldawson committed Feb 20, 2018
1 parent 3aaf35a commit a818953c93a577f5ea1358f4428d77824dd94535
Showing with 6 additions and 1 deletion.
  1. +5 −0 src/providers/arcgisrest/qgsafsprovider.cpp
  2. +1 −1 src/providers/arcgisrest/qgsafsprovider.h
@@ -200,6 +200,11 @@ QgsFields QgsAfsProvider::fields() const
return mSharedData->mFields;
}

QgsVectorDataProvider::Capabilities QgsAfsProvider::capabilities() const
{
return QgsVectorDataProvider::SelectAtId;
}

void QgsAfsProvider::setDataSourceUri( const QString &uri )
{
mSharedData->mDataSource = QgsDataSourceUri( uri );
@@ -52,7 +52,7 @@ class QgsAfsProvider : public QgsVectorDataProvider
bool changeAttributeValues( const QgsChangedAttributesMap &attr_map ) override{ return false; }
bool changeGeometryValues( QgsGeometryMap & geometry_map ) override{ return false; }
*/
QgsVectorDataProvider::Capabilities capabilities() const override { return QgsVectorDataProvider::NoCapabilities; }
QgsVectorDataProvider::Capabilities capabilities() const override;
QgsAttributeList pkAttributeIndexes() const override { return QgsAttributeList() << mObjectIdFieldIdx; }
QgsAttrPalIndexNameHash palAttributeIndexNames() const override { return QgsAttrPalIndexNameHash(); }

0 comments on commit a818953

Please sign in to comment.
You can’t perform that action at this time.