Skip to content

Commit d00020f

Browse files
committedJun 14, 2016
Add missing capabilities strings to layer metadata
1 parent b145080 commit d00020f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

‎src/core/qgsvectordataprovider.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,25 @@ QString QgsVectorDataProvider::capabilitiesString() const
195195
QgsDebugMsg( "Capability: Delete Attributes" );
196196
}
197197

198+
if ( abilities & QgsVectorDataProvider::RenameAttributes )
199+
{
200+
abilitiesList += tr( "Rename Attributes" );
201+
QgsDebugMsg( "Capability: Rename Attributes" );
202+
}
203+
198204
if ( abilities & QgsVectorDataProvider::CreateSpatialIndex )
199205
{
200206
// TODO: Tighten up this test. See QgsOgrProvider for details.
201207
abilitiesList += tr( "Create Spatial Index" );
202208
QgsDebugMsg( "Capability: Create Spatial Index" );
203209
}
204210

211+
if ( abilities & QgsVectorDataProvider::CreateAttributeIndex )
212+
{
213+
abilitiesList += tr( "Create Attribute Indexes" );
214+
QgsDebugMsg( "Capability: Create Attribute Index" );
215+
}
216+
205217
if ( abilities & QgsVectorDataProvider::SelectAtId )
206218
{
207219
abilitiesList += tr( "Fast Access to Features at ID" );
@@ -232,6 +244,18 @@ QString QgsVectorDataProvider::capabilitiesString() const
232244
QgsDebugMsg( "Capability: change both feature attributes and geometry at once" );
233245
}
234246

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+
235259
return abilitiesList.join( ", " );
236260
}
237261

0 commit comments

Comments
 (0)
Please sign in to comment.