Is it possible to edit shapes while using a "definition query" or "query builder" in QGIS? I'm trying to do this in the same way I used to in ArcGIS.


  • 1
    I think its not possible . I am also getting an error that "Provider can not be opened for editing" (If I do query using query builder). Please check out this imgur.com/KjW731p
    – Sunil
    Apr 17 '13 at 17:46
  • Sad, I think this feature is a big gap between ArcGIS and Open Source GIS Apr 17 '13 at 18:49
  • Did you enabled the layer for editing? because error seems like you aren't
    – rkm
    May 3 '13 at 3:18

It is not possible to edit a shapefile with a query. Following this ticket: http://hub.qgis.org/issues/2951, it is a matter of the underlaying OGR shapefile driver.

To solve the problem, store your data in a spatialite database, which can be queried and edited with no problems. That's what databases are designed for; a shapefile only comes with limited database-like functions.

Not the answer you're looking for? Browse other questions tagged or ask your own question.