[R-sig-Geo] readVECT6 errors

Roger Bivand Roger.Bivand at nhh.no
Wed Mar 21 19:46:14 CET 2012


On Wed, 21 Mar 2012, pierluigi de rosa wrote:

> Dear all
> I'm using spgrass6 library to import GRASS vector into R.
>
> I have a simple vector (line geometry with attribute table) called
> tratti_del_castellone_parametri
> so if I run:
>
> vector=readVECT6("tratti_del_castellone_parametri")
> I have:
> Errore in ogrInfo(dsn = dsn, layer = layer, input_field_name_encoding
> = input_field_name_encoding) :
>  Cannot open layer
>
> with the others vector file in the same mapset I have any problem to 
> import it where I'm wrong? thanks

Please consider the statgrass list for this kind of question. Can you 
export the vector from GRASS with v.out.ogr? What versions of R, rgdal, 
GDAL, GRASS, and which OS are you using? There is a difference between 
this vector and the others, which needs to be found. What does v.info say?

Roger


>
>
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list