[GRASS-user] Rasterize polygons, multiple polygons per grid cell

Lars Dalby lars.dalby at gmail.com
Sun Sep 30 07:13:59 PDT 2012


Micha Silver wrote
>     It seems that the GRASS parser doesn't "understand" the comma
>     separated list of values. Here's a bug report of the problem: 
>     http://trac.osgeo.org/grass/ticket/739 
>     
>     I tried the suggestion in that link, but it still doesn't work: 
>     > pcoor<-paste(as.integer(1), as.integer(2), sep=",") 
>     > pbox<-paste(as.integer(2), as.integer(2), sep=",") 
>     > pgrid<-paste(as.integer(2), as.integer(2), sep=",") 
>     > pars<-list(map="testgrid", grid=pgrid, coor=pcoor, box=pbox) 
>     > pars 
>     $map 
>     [1] "testgrid" 
>     
>     $grid 
>     [1] "2,2" 
>     
>     $coor 
>     [1] "1,2" 
>     
>     $box 
>     [1] "2,2" 
>     
>     But then I still get: 
>     > doGRASS("v.mkgrid",flags="overwrite", parameters=pars) 
>     Error in doGRASS("v.mkgrid", flags = "overwrite", parameters = pars)
>     : 
>       Parameter <grid> does not have integer value 

Doesn't work for me either. 


Micha Silver wrote
>     Can I suggest you take this issue to the r-spatial list? 

Done. Link to the thread  here
<http://r-sig-geo.2731867.n2.nabble.com/execGRASS-and-v-mkgrid-gives-quot-Parameter-lt-coor-gt-does-not-have-float-value-quot-td7581061.html> 
.

Thanks for your help!
-Lars



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Rasterize-polygons-multiple-polygons-per-grid-cell-tp5005264p5005389.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list