[GRASS-dev] [GRASS GIS] #3689: v.rast.stats: add where option

GRASS GIS trac at osgeo.org
Tue Oct 30 15:35:44 PDT 2018


#3689: v.rast.stats: add where option
--------------------------+--------------------------
  Reporter:  veroandreo   |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.8.0
 Component:  Vector       |    Version:  svn-trunk
Resolution:               |   Keywords:  v.rast.stats
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+--------------------------

Comment (by veroandreo):

 Replying to [comment:1 mmetz]:
 > Replying to [ticket:3689 veroandreo]:
 > > Would you agree to add `where` option in G7:v.rast.stats? I find it
 useful in some occasions where user is interested in querying only some
 features meeting a certain category. I attach the diff
 >
 > A `where` option would make sense. You need to add this `where` option
 to the call to G7:v.to.rast in G7:v.rast.stats.

 Right! See new patch attached. I tested with:

 {{{
 v.rast.stats map=urbanarea at PERMANENT where="NAME == 'Raleigh'"
 raster=aspect at PERMANENT column_prefix=aspect method=number
 }}}

 and got expected results and no errors :)

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



More information about the grass-dev mailing list