Fw: [STATSGRASS] problem during importation of vector grass
Roger Bivand
Roger.Bivand at nhh.no
Sat Feb 10 14:28:11 EST 2007
On Sat, 10 Feb 2007, Pierluigi De Rosa wrote:
> Dear Roger,
> these below are the lines of bebugging,
> It seems that cmd, gtmpfl1 and shname aren't null...
> What do you think about?
> Thanks
> Pierluigi
>
> 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))
> Browse[1]> cmd
> [1] "v.out.ogr -e input=ascii_punti type=point
> dsn=/home/pierluigi/DATABASEGRASS/GB_EST/penchini/.tmp/uni olayer=ascii_pu
> format=ESRI_Shapefile"
> Browse[1]> gtmpfl1
> [1] "/home/pierluigi/DATABASEGRASS/GB_EST/penchini/.tmp/uni"
> Browse[1]> shname
> [1] "ascii_pu"
>
Puzzling. Can you try to run:
system("v.out.ogr -e input=ascii_punti type=point dsn=. olayer=ascii_pu
format=ESRI_Shapefile") # without the line break
tmp <- readOGR(".", "ascii_pu")
inside GRASS in R in some suitable directory? Is there any reason why
v.out.ogr might fail on these data?
Roger
>
> >Please run this again, and *here* just type cmd to see what is in the
> >tring - that is after cmd is assigned but before it gets passed to
> >ystem(). Please also check the values of gtmpfl1 and shname.
> >
> >t looks as though shname is empty.
> >
> >Roger
>
--
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