User Tools

Site Tools


grass_r_db:start

GRASS, R and Databases

In this section we will discuss databases, the GRASS and R commands have already been discussed
The databases we will discuss are Postgres/PostGIS and MySQL

MySQL

As usuall we need to add in the right libraries, spgrass6 and RMySQL and maptools for nice displays:

library(spgrass6)
library(RMySQL)
library(maptools)

As we have shown in the GRASS and R section we can import and check the data is there

data <- readVECT6(c("mapA"),plugin=F)
summary(data)
plot(data)
spplot(data)
grass_r_db/start.txt · Last modified: 2012/11/30 09:58 (external edit)