[STATSGRASS] problem during importation of vector grass

Roger Bivand Roger.Bivand at nhh.no
Fri Feb 9 14:16:35 EST 2007


On Fri, 9 Feb 2007, Pierluigi De Rosa wrote:

> Sorry the correct debug is:
> 
> Browse[1]>
> debug: cmd <- paste("v.out.ogr", E, " input=", vname, " type=", type,
>     " dsn=", gtmpfl1, " olayer=", shname, " format=ESRI_Shapefile",
>     sep = "")
> Browse[1]>
> debug: tull <- ifelse(.Platform$OS.type == "windows", system(cmd), system(cmd,
>     ignore.stderr = ignore.stderr))

Please run this again, and *here* just type cmd to see what is in the 
string - that is after cmd is assigned but before it gets passed to 
system(). Please also check the values of gtmpfl1 and shname.

It looks as though shname is empty.

Roger

> Browse[1]>
> ERROR 4: Failed to open 
> shapefile /home/pierluigi/DATABASEGRASS/GB_EST/penchini/.tmp/uni/.shp.
> It may be corrupt.
> 
> ERROR: Cannot open OGR data source
>        '/home/pierluigi/DATABASEGRASS/GB_EST/penchini/.tmp/uni'
> debug: res <- readOGR(dsn = rtmpfl1, layer = shname, verbose = !ignore.stderr)
> Browse[1]>
> Errore in ogrInfo(dsn = dsn, layer = layer) :
>         Cannot open file
> 
> 
> Any Ideas?
> Thanks
> Pierluigi
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, 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 grass-stats mailing list