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

2016-11-24 Thread Jannes Münchow
Hi Manuel,   yes, this is the old error message. I guess QGIS/GRASS did not produce any output. Since you specified the load_output argument, the function tries to load it into R. First it tries to read a shapefile, if this not works, it tries to read a raster file. That's also the reason why

[R-sig-Geo] Error with loading rJava for spcosa [SEC=UNCLASSIFIED]

2016-11-24 Thread Li Jin
Hi All, I have been using library(spcosa) in R version 3.2.3 (2015-12-10) and all worked well, until today. The error was as below when I called: > library(spcosa) Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname)

Re: [R-sig-Geo] package sp, extract values points-lines

2016-11-24 Thread marta azores
Hi Roger, Thanks for the tip. I tried with only one track the function gIntersects and gbuffer . It works. I created my spatiallines from a data frame , and now I was looking for how create the spatiallines by categories (1 variable of the data.frame). I have only one spatial line with all the

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

2016-11-24 Thread Manuel Spínola
Thank you very much Roger. 2016-11-24 8:09 GMT-06:00 Roger Bivand : > On Thu, 24 Nov 2016, Manuel Spínola wrote: > > Thank you very much Roger. >> >> Sorry about that, I took the name from the Processing toolbox in QGIS and >> I >> assumed (wrongly) that was the name in

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

2016-11-24 Thread Manuel Spínola
Thank you Jannes, I installed the QGIS LTR, but I got the following error: qgis_env <- set_env("C:/Program Files/QGIS 2.14") ruta <- readOGR(dsn = ".", layer = "Ruta32_CRTM05_FINAL") args <- get_args_man("grass7:v.split.length", qgis_env = qgis_env, options = TRUE) args$input <- ruta

Re: [R-sig-Geo] package sp, extract values points-lines

2016-11-24 Thread Roger Bivand
On Thu, 24 Nov 2016, rola...@uni-muenster.de wrote: Hi Marta, by ?sp::over you will see that SpatialLines are not supported. Moreover it says: "over methods that involve SpatialLines objects, or pairs of SpatialPolygons require package rgeos, and use gIntersects." So, try gIntersects ...

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

2016-11-24 Thread Roger Bivand
On Thu, 24 Nov 2016, Manuel Spínola wrote: Thank you very much Roger. Sorry about that, I took the name from the Processing toolbox in QGIS and I assumed (wrongly) that was the name in GRASS. I want to split a vector line (route) in equal contiguous segments of 500 m. So for a Line object

Re: [R-sig-Geo] package sp, extract values points-lines

2016-11-24 Thread rolandh
Hi Marta, by ?sp::over you will see that SpatialLines are not supported. Moreover it says: "over methods that involve SpatialLines objects, or pairs of SpatialPolygons require package rgeos, and use gIntersects." So, try gIntersects ... Cheers, Roland marta azores schrieb am 2016-11-24: > Hi

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

2016-11-24 Thread Manuel Spínola
Thank you very much Roger. Sorry about that, I took the name from the Processing toolbox in QGIS and I assumed (wrongly) that was the name in GRASS. I want to split a vector line (route) in equal contiguous segments of 500 m. Manuel 2016-11-24 2:09 GMT-06:00 Roger Bivand

[R-sig-Geo] package sp, extract values points-lines

2016-11-24 Thread marta azores
Hi everyone, I need to join two datasets, one with survey boats and other with sightings. There are different boats in the same area. First I've created the tracks with the gps information, and give to each track an ID number(column) . Second, I would like to join by time and space the sightings

Re: [R-sig-Geo] rgrass7 : Error in parseGRASS

2016-11-24 Thread Chris Reudenbach
@Michael fine! @Roger this is pretty dirty "hack" I did not cross check if I got all variables dealing with GRASS. I would like to do it more systematically. Nevertheless as far as I understand the osgeo4w concept, we have only two changing names. 1) the installation root directory 2) the

Re: [R-sig-Geo] rgrass7 : Error in parseGRASS

2016-11-24 Thread Michael DELORME
Let me use this opportunity to thank you for all the tools, documentation and support you provide. This makes R a very useful tool for us. Cordially Le 24/11/2016 10:48, Roger Bivand a écrit : > On Thu, 24 Nov 2016, Michael DELORME wrote: > >> That's great Chris, it works fine as is ! >> Thank

Re: [R-sig-Geo] rgrass7 : Error in parseGRASS

2016-11-24 Thread Roger Bivand
On Thu, 24 Nov 2016, Michael DELORME wrote: That's great Chris, it works fine as is ! Thank you, I don't have to keep another GRASS install aside then. Thanks for confirming this. I'll try to set up a test rig to allow initGRASS to set up the environment variables when using GRASS in OSGeo4W

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

2016-11-24 Thread Jannes Münchow
Hi Manuel,   overall we recommend to use RQGIS with the long-term release of QGIS (2.14). Nevertheless, RQGIS works also with QGIS 2.18. However, there is a bug in the QGIS Python code. Therefore, one needs to manually change the Python code. Here you find how you can do that:  

Re: [R-sig-Geo] rgrass7 : Error in parseGRASS

2016-11-24 Thread Michael DELORME
That's great Chris, it works fine as is ! Thank you, I don't have to keep another GRASS install aside then. I'm sure it will be helpful to other people also. Thanks again Le 24/11/2016 09:17, Chris Reudenbach a écrit : > Michael, > > Using a fresh OSGEO4W64 standard quick desktop installation

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

2016-11-24 Thread Roger Bivand
Never hi-jack existing threads. If you want to ask a question, start a new thread with a new subject line; do not reply to an existing post chaning the subject line either. Before asking questions, read the instructions and posting guide: https://www.r-project.org/mail.html#instructions

Re: [R-sig-Geo] rgrass7 : Error in parseGRASS

2016-11-24 Thread Chris Reudenbach
Michael, Using a fresh OSGEO4W64 standard quick desktop installation (i.e. installation of the default desktop GIS software packages with the installer and using C:\OSGeo4W64 as path) I suggest the below solution. You have to set all necessary eniromental and system variables manually. I

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

2016-11-24 Thread Roger Bivand
Before giving advice, please do ask for clarification. There is no v.split.length in GRASS at all, there is only v.split. Without a fully specified GRASS command, such as: v.split -n input=??, output=??, length=10.0, units="meters" which means add vertices each 10m, but do not split the