[QGIS-trac] Re: [Quantum GIS] #2951: Layers become non-editable

Quantum GIS qgis at qgis.org
Thu Aug 19 08:19:44 EDT 2010


#2951: Layers become non-editable
-----------------------------------------------------+----------------------
        Reporter:  infobleep                         |         Owner:  nobody                      
            Type:  bug                               |        Status:  reopened                    
        Priority:  major: does not work as expected  |     Milestone:  Version 2.0.0               
       Component:  Vectors                           |       Version:  1.5.0                       
      Resolution:                                    |      Keywords:  non-editable, layers, toggle
Platform_version:  XP                                |      Platform:  Windows                     
        Must_fix:  Yes                               |   Status_info:  0                           
-----------------------------------------------------+----------------------

Comment(by infobleep):

 Replying to [comment:6 jef]:
 > Replying to [comment:5 infobleep]:
 > > Replying to [comment:4 jef]:
 > > > Shapefiles with queries (like {{{raods_for_text}}}) are not
 editable.  This is an OGR restriction.
 >
 > > If that is the case, why can I edit when the same layer has been added
 in a second time?
 >
 > Without a query you can edit the shape, but with a query you can't.
 >
 > What could be considered a bug is that you can apply a query on any
 shape layer, that already is in editing mode.
 >
 > OTOH that change of editing capability is purely up to the OGR shape
 driver and might change in the future.  Other OGR datasources might behave
 different and other qgis data providers like the postgres provider
 actually do.

 Sorry Jef, I misunderstood your original reply. A query is set up to allow
 different layers to be generated from one data source. A data source
 containing roads might have 5 different road types. So I used queries to
 create 5 layers, one for each road type. This then would allow label the
 text for each road type with a different style. Whilst doing this though,
 I may still wish to edit the roads in the original datasource.

 I could add in another copy of the datasource layer without a query placed
 on it but that would be more confusing for users with less understanding
 of GIS.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2951#comment:7>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list