Hi Anna
It should add a new field to a vector with a statistic derived from a raster.
It works manually. Not in the pytho scrip. Is the syntax correct? 

Inviato da iPhone

> Il giorno 23/ott/2015, alle ore 19:07, Anna Petrášová <kratocha...@gmail.com> 
> ha scritto:
> 
> 
> 
>> On Fri, Oct 23, 2015 at 10:31 AM, Gra <graz...@gmail.com> wrote:
>> I'm using 
>> 
>> v.rast.stat in a python code
> it's v.rast.stats and use map instead of vector, please see manual page:
> https://grass.osgeo.org/grass70/manuals/v.rast.stats.html 
>> 
>> 
>> grass.run_command("v.rast.stat", vector = vect+"_"+suffix +'_300', raster= 
>> "r_main_roads_dist" + suffix, colprefix="AVG_mainroads", method="average")
>> 
>> apparently it doens't like my syntax
>> 
>> ideas?
>> 
>> thanks
>> 
>> _______________________________________________
>> grass-user mailing list
>> grass-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
> 
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to