[Live-demo] [OSGeo] #1444: Build spgrass6 against grass70-dev

OSGeo trac_osgeo at osgeo.org
Thu Jan 15 03:13:35 PST 2015


#1444: Build spgrass6 against grass70-dev
----------------------+-----------------------------------------------------
 Reporter:  kalxas    |       Owner:  live-demo@…              
     Type:  task      |      Status:  new                      
 Priority:  critical  |   Milestone:  OSGeoLive8.5             
Component:  LiveDVD   |    Keywords:  GRASS, R                 
----------------------+-----------------------------------------------------

Comment(by neteler):

 Just for the record, the "spgrass6" interface works well also with GRASS
 GIS 7:

 {{{
 GRASS 7.0.0RC1 (nc_spm_08_grass7):~ > R

 R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
 Copyright (C) 2014 The R Foundation for Statistical Computing
 Platform: x86_64-redhat-linux-gnu (64-bit)
 [...]

 > install.packages("spgrass6", dependencies = TRUE)
 [...]

 > library(spgrass6)
 Loading required package: sp
 Loading required package: XML
 GRASS GIS interface loaded with GRASS version: GRASS 7.0.0RC1 (2014)
 and location: nc_spm_08_grass7

 > ncdata <- readRAST6(c("geology_30m", "elevation"))
 Warning message:
 statistics not supported by this driver

 > str(ncdata)
 Formal class 'SpatialGridDataFrame' [package "sp"] with 4 slots
   ..@ data       :'data.frame': 525000 obs. of  2 variables:
   .. ..$ geology_30m: int [1:525000] 262 262 262 262 262 262 262 262 262
 262 ...
   .. ..$ elevation  : num [1:525000] 126 126 126 126 126 ...
   ..@ grid       :Formal class 'GridTopology' [package "sp"] with 3 slots
   .. .. ..@ cellcentre.offset: num [1:2] 638300 220000
   .. .. ..@ cellsize         : num [1:2] 1 1
   .. .. ..@ cells.dim        : int [1:2] 700 750
   ..@ bbox       : num [1:2, 1:2] 638300 220000 639000 220750
   .. ..- attr(*, "dimnames")=List of 2
   .. .. ..$ : NULL
   .. .. ..$ : chr [1:2] "min" "max"
   ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slot
   .. .. ..@ projargs: chr "+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 +"| __truncated__

 > image(ncdata, attr = 2, col = terrain.colors(20))
 }}}

 ... plots the map as expected.

-- 
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/1444#comment:1>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Live-demo mailing list