|
|
|
Lukas Quehl
|
Hi,
I have a problem with transferring vector maps from GRASS into R. The "readVECT6" function is not working. I always get the message "Fehler in vInfo(vname) : Vector information not found" ("Fehler"=Error). I did everything exactly as described in "Using R-GRASS Interface". It is neither working with my own data nor with the spearfish data. Other commands like "readRAST6" or "system(...)" are working, at least the ones I tried. I have no clue how to fix this or what I should do differently. Thank you for any help. Sincerely Lukas PS: Sorry if you already got this message, I had some problems with the spam filter of my other e-mail address and therefore sent the message twice System: Linux OpenSuse 10.3 GRASS 6.4.0RC5 (spearfish60):~ > R R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 >library(spgrass6) Lade nötiges Paket: sp Lade nötiges Paket: rgdal Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 1.6.1, released 2009/05/11 Path to GDAL shared files: Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008 Path to PROJ.4 shared files: (autodetected) Lade nötiges Paket: XML GRASS GIS interface loaded with GRASS version: 6.4.0RC5 and location: nc_spm_08 >sessionInfo() R version 2.9.0 (2009-04-17) i686-pc-linux-gnu locale: LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;LC_MONETARY=C;LC_MESSAGES=de_DE.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] spgrass6_0.6-9 XML_2.6-0 rgdal_0.6-19 sp_0.9-44 loaded via a namespace (and not attached): [1] grid_2.9.0 lattice_0.17-22 >test<-readVECT6("elev_lid792_bepts") Fehler in vInfo(vname) : Vector information not found >traceback() 3: stop("Vector information not found") 2: vInfo(vname) 1: readVECT6("elev_lid792_bepts") >execGRASS("g.list",parameters=list(type="vect")) ---------------------------------------------- vector files available in mapset <PERMANENT>: P079214 elev_lid792_bepts poi_names_wake ... ... ... #lists all available vector maps >execGRASS("v.info",parameters=list(map="elev_lid792_bepts")) +----------------------------------------------------------------------------+ | Layer: elev_lid792_bepts | | Mapset: PERMANENT | | Location: nc_spm_08 | | Datenbank: /home/lukas/grassdata | | Titel: Rural area (in tile 792), bare earth lidar point cloud (p | | Maßstab: 1:1 | | Kartenformat: native | | Name des Erzeugers: helena | | Organisation: NC OneMap | | Quelldatum: Mon Nov 6 14:11:59 2006 | |----------------------------------------------------------------------------| | Typ der Karte: Vektor (Level: 2) | | | | Anzahl Punkte: 118716 Anzahl Flächen: 0 | | Anzahl Linien: 0 Anzahl Inseln: 0 | | Anzhal Grenzen: 0 Anzahl faces: 0 | | Anzahl Zentroid: 0 Anzahl Kerne: 0 | | | | Karte ist 3D: Yes | | Anzahl der dblinks: 0 | | | | Projektion: x,y | | N: 221229.985 S: 219580.011 | | E: 639529.99 W: 637740.009 | | B: 88.514 T: 134.493 | | | | Digitalisierungs-Schwellwert: 0 | | Kommentare: | | | +----------------------------------------------------------------------------+ ______________________________________________________ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de _______________________________________________ grass-stats mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/grass-stats |
||||||||||||||||
|
Roger Bivand
|
On Thu, 22 Oct 2009, Lukas Quehl wrote:
> Hi, I have a problem with transferring vector maps from GRASS into R. > The "readVECT6" function is not working. I always get the message > "Fehler in vInfo(vname) : Vector information not found" > ("Fehler"=Error). I did everything exactly as described in "Using > R-GRASS Interface". It is neither working with my own data nor with the > spearfish data. Other commands like "readRAST6" or "system(...)" are > working, at least the ones I tried. I have no clue how to fix this or > what I should do differently. Thank you for any help. Sincerely Lukas I guess one of my messages got through, since you've included useful information. vInfo() expects the output of v.info to be in English, otherwise it cannot be parsed. Change to an English locale and it will work. By the way, does anyone know of a non-localised way of retrieving the information needed - vInfo for bugsites returns: points lines boundaries centroids areas islands faces 90 0 0 0 0 0 0 kernels 0 but if the points are called "Punkte", all bets are off! Without this information, it is not possible to distinguish between vector types for composing the v.out.ogr command parameters. Will: v.info -t bugsites or execGRASS("v.info", flags="t", parameters=list(map="bugsites")) return English-parsable information irrespective of locale - it looks like it does? If someone can confirm, I'll patch vInfo() to suit. Roger > > PS: Sorry if you already got this message, I had some problems with the spam filter of my other e-mail address and therefore sent the message twice > > System: Linux OpenSuse 10.3 > > GRASS 6.4.0RC5 (spearfish60):~ > R > > R version 2.9.0 (2009-04-17) > Copyright (C) 2009 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 >> library(spgrass6) > Lade nötiges Paket: sp Lade nötiges Paket: rgdal > Geospatial Data Abstraction Library extensions to R successfully loaded > Loaded GDAL runtime: GDAL 1.6.1, released 2009/05/11 > Path to GDAL shared files: > Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008 > Path to PROJ.4 shared files: (autodetected) > Lade nötiges Paket: XML > GRASS GIS interface loaded with GRASS version: 6.4.0RC5 > and location: nc_spm_08 >> sessionInfo() > R version 2.9.0 (2009-04-17) i686-pc-linux-gnu > > locale: > LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;LC_MONETARY=C;LC_MESSAGES=de_DE.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] spgrass6_0.6-9 XML_2.6-0 rgdal_0.6-19 sp_0.9-44 > > loaded via a namespace (and not attached): > [1] grid_2.9.0 lattice_0.17-22 > >> test<-readVECT6("elev_lid792_bepts") > Fehler in vInfo(vname) : Vector information not found > >> traceback() > 3: stop("Vector information not found") 2: vInfo(vname) > 1: readVECT6("elev_lid792_bepts") > >> execGRASS("g.list",parameters=list(type="vect")) > ---------------------------------------------- vector files available in mapset <PERMANENT>: > P079214 elev_lid792_bepts poi_names_wake > ... ... ... > #lists all available vector maps > >> execGRASS("v.info",parameters=list(map="elev_lid792_bepts")) > +----------------------------------------------------------------------------+ > | Layer: elev_lid792_bepts | > | Mapset: PERMANENT | > | Location: nc_spm_08 | > | Datenbank: /home/lukas/grassdata | > | Titel: Rural area (in tile 792), bare earth lidar point cloud (p | > | Maßstab: 1:1 | > | Kartenformat: native | > | Name des Erzeugers: helena | > | Organisation: NC OneMap | > | Quelldatum: Mon Nov 6 14:11:59 2006 | > |----------------------------------------------------------------------------| > | Typ der Karte: Vektor (Level: 2) | > | | > | Anzahl Punkte: 118716 Anzahl Flächen: 0 | > | Anzahl Linien: 0 Anzahl Inseln: 0 | > | Anzhal Grenzen: 0 Anzahl faces: 0 | > | Anzahl Zentroid: 0 Anzahl Kerne: 0 | > | | > | Karte ist 3D: Yes | > | Anzahl der dblinks: 0 | > | | > | Projektion: x,y | > | N: 221229.985 S: 219580.011 | > | E: 639529.99 W: 637740.009 | > | B: 88.514 T: 134.493 | > | | > | Digitalisierungs-Schwellwert: 0 | > | Kommentare: | > | | > +----------------------------------------------------------------------------+ > ______________________________________________________ > GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://movieflat.web.de > > _______________________________________________ > grass-stats mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/grass-stats > Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: [hidden email] _______________________________________________ grass-stats mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/grass-stats Roger Bivand
Economic Geography Section Department of Economics Norwegian School of Economics and Business Administration Helleveien 30 N-5045 Bergen, Norway |
|
Markus Neteler
|
Dear Roger,
2009/10/22 Roger Bivand <[hidden email]>: ... > vInfo() expects the output of v.info to be in English, > otherwise it cannot be parsed. Change to an English locale and it will work. This should not be needed, if... > By the way, does anyone know of a non-localised way of retrieving the > information needed - vInfo for bugsites returns: > > points lines boundaries centroids areas islands faces > 90 0 0 0 0 0 0 > kernels > 0 ... you use the -t flag for v.info which is not localised. A related patch of vInfo should solve the problem. GRASS should always offer a non-localised way to output such kind of information, if missing please tell us and we add a related flag. Best Markus _______________________________________________ grass-stats mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/grass-stats |
||||||||||||||||
|
Roger Bivand
|
On Thu, 22 Oct 2009, Markus Neteler wrote:
> Dear Roger, > > 2009/10/22 Roger Bivand <[hidden email]>: > ... >> vInfo() expects the output of v.info to be in English, >> otherwise it cannot be parsed. Change to an English locale and it will work. > > This should not be needed, if... > >> By the way, does anyone know of a non-localised way of retrieving the >> information needed - vInfo for bugsites returns: >> >> points lines boundaries centroids areas islands faces >> 90 0 0 0 0 0 0 >> kernels >> 0 > > ... you use the -t flag for v.info which is not localised. > > A related patch of vInfo should solve the problem. GRASS should > always offer a non-localised way to output such kind of information, > if missing please tell us and we add a related flag. cvs -z3 -d:pserver:[hidden email]:/cvsroot/r-spatial co -P spgrass6 and install and test in his original locale? Thanks, Roger > > Best > Markus > -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: [hidden email] _______________________________________________ grass-stats mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/grass-stats Roger Bivand
Economic Geography Section Department of Economics Norwegian School of Economics and Business Administration Helleveien 30 N-5045 Bergen, Norway |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |