[GRASS-user] g.region in R

Helmut Kudrnovsky hellik at web.de
Thu May 5 15:16:23 EDT 2011


Hi,

>I know little about GRASS file structure, but
>it's evident that g.region is a metadata file of spatial parameters, and
>that I need to point R towards it, but I can't find the file or get around
>this error. This may be more of an R question than a GRASS one, but any
>suggestions are welcome. Code and errors printed below.

please tell us which wingrass-installation (standalone, osgeo4w, ...) you are using.
and how you are coupling wingrass and R

could you test it with wingrass-nightlybuilds?

http://wingrass.fsv.cvut.cz/grass64/
http://wingrass.fsv.cvut.cz/grass65/
http://wingrass.fsv.cvut.cz/grass70/

I've tested it with a recent wingrass70-nightly-build, a R-session within a wingrass7-session is working
(see below)

some hints for R and grass gis:
http://grass.osgeo.org/wiki/GRASS_and_Rstat
http://www.mendeley.com/research/open-source-geocomputation-using-the-r-data-analysis-language-integrated-with-grass-gis-and-postgresql-data-base-systems/
http://casoilresource.lawr.ucdavis.edu/drupal/node/438

best regards
Helmut

Cleaning up temporary files...
Starting GRASS GIS...
WARNUNG: Concurrent mapset locking is not supported on Windows

          __________  ___   __________    _______________
         / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/
        / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
       / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
       \____/_/ |_/_/  |_/____/____/   \____/___//____/

Welcome to GRASS 7.0.svn (2011)

GRASS homepage:                          http://grass.osgeo.org
This version running through:            shell (C:\Program Files\GRASS 7.0.SVN\msys\bin\sh.exe)
Help is available with the command:      g.manual -i
See the licence terms with:              g.version -c
If required, restart the GUI with:       g.gui wxpython
When ready to quit enter:                exit

Launching 'wxpython' GUI in the background, please wait...
GRASS 7.0.svn> R

R version 2.12.2 (2011-02-25)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

> library(sp)
> library(spgrass6)
Lade nötiges Paket: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.2, released 2010/04/23
Path to GDAL shared files: c:/PROGRA~1/R/R-212~1.2/library/rgdal/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: c:/PROGRA~1/R/R-212~1.2/library/rgdal/proj
Lade nötiges Paket: XML
GRASS GIS interface loaded with GRASS version: 7.0.svn
and location: nc_spm_08
> gm <- gmeta6()
> gm
gisdbase    C:\gisdata\grassdata
location    nc_spm_08
mapset      g7
rows        1350
columns     1500
north       228500
south       215000
west        630000
east        645000
nsres       10
ewres       10
projection  +proj=lcc +lat_1=36.16666666666666 +lat_2=34.33333333333334
+lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0 +no_defs +a=6378137
+rf=298.257222101 +towgs84=0.000,0.000,0.000 +to_meter=1
>

___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1747 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20110505/77692e77/smime.bin


More information about the grass-user mailing list