Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.


share|improve this question
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 –  user17256 Apr 17 '13 at 18:49
Did you enabled the layer for editing? because error seems like you aren't –  rashad May 3 '13 at 3:18

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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