[R-sig-Geo] v.split.length (GRASS) in R

Florian Betz flobetz at web.de
Wed Nov 23 14:28:13 CET 2016


Assuming you are using GRASS 7, you can use the rgrass7 package. First 
thing to do is to initialize the R-GRASS connection, then you can run 
the module using execGRASS.

library(rgrass7)
#Arguments depending on your system
initGRASS(gisBase ="C:/Program Files/GRASS GIS 7.0.5",home=tempdir(),
           gisDbase="Path to the folder with your location, 
location="Your GRASS location",mapset="Your GRASS mapset",override=TRUE)
#See the help of v.split.lenght for the necessary function arguments
execGRASS("v.split.length", argument1=, argument2=, ...)

Regards,

Flo

Am 23.11.2016 um 14:15 schrieb Manuel Spínola:
> Dear list members,
>
> Is it possible to run v.split.length from GRASS in R? Or is there anyway to
> split a SpatialLinesDataFrame to shorter segments by length in R?
>
> Best,
>
> Manuel
>



More information about the R-sig-Geo mailing list