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

Moritz Lennert mlennert at club.worldonline.be
Fri May 17 05:45:54 PDT 2013


On 17/05/13 13:08, Nikos Alexandris wrote:
> 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?

I just committed a fix. Please test to see if it works.

Moritz


More information about the grass-dev mailing list