Skip to content
Back to formatted view

Raw Message

Message-ID: <47F5DCBC.1060906@alumni.uv.es>
Date: 2008-04-04T07:46:04Z
From: Facundo Muñoz
Subject: readVECT6 temporary failure
In-Reply-To: <Pine.LNX.4.64.0804021656020.28925@reclus.nhh.no>

Roger Bivand escribi?:
> On Wed, 2 Apr 2008, Facundo Mu?oz wrote:
>
>>
>> Hello list,
>>
>> i've been dealing all day with this, and i can't find the problem.
>> It suddenly begun to happen.
>>
>> Im working with GRASS 6.2.3 under CygWin, and with R 6.2.2 with the
>> latest libraries (in fact, while trying to solve this problem, i removed
>> all R versions, and reinstalled the latest. But is still failing).
>>
>> This is it:
>> i start GRASS, and open the location i'm working with.
>> then i start R from GRASS console, load spgrass6 library, and i transfer
>> a vector map:
>>
>>     GRASS> r --no-save
>>     R> library(spgrass6)
>>     R> medidas <- readVECT6("medidas")
>>
>> everything goes fine so far.
>
> Is there a stray *.dbf file in the temporary directory? OGR with the 
> ESRI Shapefile driver does not like extra *.dbf or other irregularities.
>
> In situations like this, just side-step readVECT6, use 
> system("r.out.ogr ...") to an arbitrary directory, and readOGR() from 
> there. There are multiple components operating, so complete control is 
> not possible, but I have seen problems with stray *.dbf files before 
> that were hard to debug.
>
> Roger

No, i made sure to clean things: I even erased de whole directory and 
let GRASS create it again when he needed it.
Any way, the alternate way is easy and works well.
(A curiosity: writeVECT6 keeps working fine)

Thank you very much.
       Facundo.-

-- 
Departament d'Estad?stica i Investigaci? Operativa Universitat de 
Val?ncia (Estudi General)
Facultat de Matem?tiques, Dr. Moliner 50, 46100 Burjassot, Spain.
(+34) 96 354 3987, fax: (+34) 96 354 3238
e-mail: Facundo.Munoz at uv.es, web: http://www.uv.es/~famarmu/