[GRASS-dev] [GRASS GIS] #2309: Add a select all flag to v.edit

GRASS GIS trac at osgeo.org
Fri May 23 07:34:59 PDT 2014


#2309: Add a select all flag to v.edit
---------------------------------------+------------------------------------
 Reporter:  wenzeslaus                 |       Owner:  grass-dev@…              
     Type:  enhancement                |      Status:  new                      
 Priority:  trivial                    |   Milestone:  7.1.0                    
Component:  Vector                     |     Version:  svn-trunk                
 Keywords:  v.edit, feature selection  |    Platform:  All                      
      Cpu:  Unspecified                |  
---------------------------------------+------------------------------------
 There is no explicit and documented possibility to select all features
 when editing using G7:v.edit. This make sense if you edit categories (not
 geometry) and you want to change the category for all features.

 Perhaps `-a Select all` flag would be a clear way how to say that I want
 all features.

 Currently you can use the trick with `-r Reverse selection` flag but it is
 not readable, intuitive and it is not clear if this behavior is supported.

 Another possible workaround is to get bbox by `v.info -g` and pass it as
 `polygon` parameter (ticket:2304#comment:2). This seems inconvenient to me
 (in Python or in GUI).

 Parent ticket: #2304

 === Example ===

 Prepare test data:

 {{{
 v.in.ascii input=- output=test separator=comma <<EOF
 913240.0,250614.0
 913250.0,250628.0
 EOF
 }}}

 We do not select any features, so selection is empty but we use `-r` flag
 to reverse selection:

 {{{
 v.edit -r map=test tool=catadd layer=2 cats=10
 }}}

 There should be a feature in layer 2 with category 10.
 {{{
 v.what map=test coordinates=913240.0,250614.0
 }}}
 {{{
 East: 913240
 North: 250614
 ------------------------------------------------------------------
 Map: test
 Mapset: jr_contours
 Type: Point
 Id: 1
 Layer: 1
 Category: 1
 Layer: 2
 Category: 10
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2309>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list