[GRASS-dev] [GRASS GIS] #3694: WHERE statement in v.generalize do not work

GRASS GIS trac at osgeo.org
Tue Nov 13 06:42:20 PST 2018


#3694: WHERE statement in v.generalize do not work
------------------------+--------------------------
  Reporter:  BastienFR  |      Owner:  grass-dev@…
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  Default    |    Version:  7.4.1
Resolution:             |   Keywords:  v.generalize
       CPU:  x86-64     |   Platform:  MSWindows
------------------------+--------------------------

Comment (by mmetz):

 Replying to [ticket:3694 BastienFR]:
 > The `WHERE` statement from `v.generalize` do not seem to work anymore.

 Looking at the manual G7:v.generalize:

 layer=string
     Layer number or name ('-1' for all layers)

     A single vector map can be connected to multiple database tables. This
 number determines which table to use. When used with direct OGR access
 this is the layer name.

     Default: -1

 By default all layers are processed, in which case the cats and where
 options are ignored because they require a single layer to be selected.

 Results are as expected when using `v.generalize layer=1 where="CNTY<1"
 ...`.

 Note that a boundary is generalized as soon as any of the areas it belongs
 to fulfils the where condition. In a topological vector model as in GRASS,
 the modification of a single boundary results in the modification of two
 areas.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3694#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list