[GRASS-stats] Mapset issue with vector data via OGR plugin

Markus Neteler neteler at osgeo.org
Thu Aug 13 18:42:30 EDT 2009


I have some troubles when the vector map name contains the
@mapset part:

R version 2.9.1 (2009-06-26)
> library(spgrass6)
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.0dev, released 2008/11/26
Path to GDAL shared files: /usr/local/share/gdal
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML

> data <- readVECT6("rand5k_elev_filt at neteler", type= 'point')
Error in ogrInfo(dsn = dsn, layer = layer, input_field_name_encoding =
input_field_name_encoding) :
  Cannot open file

while this works:

> data <- readVECT6("rand5k_elev_filt", type= 'point')
OGR data source with driver: GRASS
Source: "/home/neteler/grassdata/spearfish60/neteler/vector/rand5k_elev_filt/head",
layer: "1"
with 4885 features and 5 fields
Feature type: wkbPoint with 2 dimensions

I have used update.packages() and should have the latest sp* packages.
I tried to debug the problem but failed...

Can anyone confirm this problem?


More information about the grass-stats mailing list