@@ -195,13 +195,25 @@ QString QgsVectorDataProvider::capabilitiesString() const
195
195
QgsDebugMsg ( " Capability: Delete Attributes" );
196
196
}
197
197
198
+ if ( abilities & QgsVectorDataProvider::RenameAttributes )
199
+ {
200
+ abilitiesList += tr ( " Rename Attributes" );
201
+ QgsDebugMsg ( " Capability: Rename Attributes" );
202
+ }
203
+
198
204
if ( abilities & QgsVectorDataProvider::CreateSpatialIndex )
199
205
{
200
206
// TODO: Tighten up this test. See QgsOgrProvider for details.
201
207
abilitiesList += tr ( " Create Spatial Index" );
202
208
QgsDebugMsg ( " Capability: Create Spatial Index" );
203
209
}
204
210
211
+ if ( abilities & QgsVectorDataProvider::CreateAttributeIndex )
212
+ {
213
+ abilitiesList += tr ( " Create Attribute Indexes" );
214
+ QgsDebugMsg ( " Capability: Create Attribute Index" );
215
+ }
216
+
205
217
if ( abilities & QgsVectorDataProvider::SelectAtId )
206
218
{
207
219
abilitiesList += tr ( " Fast Access to Features at ID" );
@@ -232,6 +244,18 @@ QString QgsVectorDataProvider::capabilitiesString() const
232
244
QgsDebugMsg ( " Capability: change both feature attributes and geometry at once" );
233
245
}
234
246
247
+ if ( abilities & QgsVectorDataProvider::TransactionSupport )
248
+ {
249
+ abilitiesList += tr ( " Transactions" );
250
+ QgsDebugMsg ( " Capability: transactions" );
251
+ }
252
+
253
+ if ( abilities & QgsVectorDataProvider::CircularGeometries )
254
+ {
255
+ abilitiesList += tr ( " Curved Geometries" );
256
+ QgsDebugMsg ( " Supports circular geometry types (circularstring, compoundcurve, curvepolygon)" );
257
+ }
258
+
235
259
return abilitiesList.join ( " , " );
236
260
}
237
261
0 commit comments