[GRASS5] v.in.ogr - test for existing map error

Dear list,

using v.in.ogr to import data and create a new location in one step fails if
a map with the same name exists in the current location.

v.in.ogr dsn=roads out=roads loc=new
-> Error: map roads already exists in current location

I guess a test for the parameter location would fix this bug.

thanks
   Otto

--
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl

otto dassau wrote:

Dear list,

using v.in.ogr to import data and create a new location in one step fails if
a map with the same name exists in the current location.

v.in.ogr dsn=roads out=roads loc=new
-> Error: map roads already exists in current location

I guess a test for the parameter location would fix this bug.

thanks
   Otto

Unfortunately existence of the vector is checked by parser. I have added a hack to v.in.ogr. I guess that r.in.gdal has the same problem?
Somebody working on rasters can fix that?

Radim