Bug report #8458
Spatial Query - Create layer> Uneditable new layer
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Vectors | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Windows and MAC | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | invalid |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 17226 |
Description
I use Spatial Query
After performing the query the option Create Layer with selection-button.
It works - but the new layer is not for editing, and in the General Option it shows a lot of numbers in the layer source.
See the video [[http://screencast.com/t/n3fef97ok]]
Only soloution is to save as...
Related issues
History
#1 Updated by Giovanni Manghi about 11 years ago
- Resolution set to invalid
- Status changed from Open to Closed
The layer that the tool creates isn't a new layer, is a copy of the one where the selection is made with a filter applied. In QGIS when a layer has a filter applied is not editable.
#2 Updated by Jürgen Fischer about 11 years ago
Giovanni Manghi wrote:
The layer that the tool creates isn't a new layer, is a copy of the one where the selection is made with a filter applied. In QGIS when a layer has a filter applied is not editable.
Filtered shapefile layers are not editable (OGR restriction, but that might not even apply to all OGR drivers).
#3 Updated by Lene Fischer about 11 years ago
This is a mixup of metafors
For "normal" users - which I have in the classroom all said
"Create a new layer" means - a new shape file layer - which can be edited in.
Otherwise it should only create a normal selection which also can be edited and Saveed As.
The readonly limitation of the function will diminish the usability.
#4 Updated by Giovanni Manghi about 11 years ago
Lene Fischer wrote:
This is a mixup of metafors -
For "normal" users which I have in the classroom all said
"Create a new layer" means - a new shape file layer - which can be edited in.
Otherwise it should only create a normal selection which also can be edited and Saveed As.
this can be improved, please make a suggestion on how to change that string in the spatial query tool
The readonly limitation of the function will diminish the usability.
as Jurgen said (as my answer was partially wrong), this is true for shapefiles and it is not a QGIS limitation, but a OGR one. With PostGIS or Spatialite this does not happens.