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

Manuel Spínola mspinola10 at gmail.com
Wed Nov 23 20:46:48 CET 2016


Thank you very much Florian.

Do you know any R function/package to do the same without relying on GRASS?

Manuel

2016-11-23 7:28 GMT-06:00 Florian Betz <flobetz at web.de>:

> 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
>>
>>
>


-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.cr <mspinola at una.ac.cr>
mspinola10 at gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list