[GRASS-dev] [GRASS-user] RE : RE : Merge polygone with same attribut of a shapefile

Nikos Alexandris nik at nikosalexandris.net
Fri May 17 04:08:56 PDT 2013


Nikos wrote:
..
> >> # get stats for cats in layer 2, that is for all different cats!
> >> v.rast.stats -c vector=polygons_tmp raster=RandomRaster column_prefix=rr2
> >> layer=2

> >> #...unfortunately, this last step in uploading stats in to layer 2, fails
> >> in G7 :-(

..

Moritz wrote:
> v.db.addcolumn seems to lack the layer option here:
> 
> https://trac.osgeo.org/grass/browser/grass/trunk/scripts/v.rast.stats/v.rast
> .stats.py#L194
> 
> Try to add it in the script and see if that makes it work.

Indeed.  Milles Mercis, N

ps- Care for a diff? Or already changed?



More information about the grass-dev mailing list