Skip to content
Prev 8318 / 29559 Next

writeOGR error: problem with GDAL (libgdal1- 1.7.0)

I'm getting this error using a command and an object that
used to work few months ago
Error in writeOGR(Montseny20090409shtotspols, dsn = "Montseny20090409tots2", 
: 
  
	GDAL Error 1: Invalid index : -1
Calls: writeOGR -> .Call
In addition: Warning messages:
1: In writeOGR(Montseny20090409shtotspols, dsn = "Montseny20090409tots2",  :
  
	Non-fatal GDAL Error 6: Normalized/laundered field name: 'coords.x1.1' to
'coords.x1.'
2: In writeOGR(Montseny20090409shtotspols, dsn = "Montseny20090409tots2",  :
  
	Non-fatal GDAL Error 6: Normalized/laundered field name: 'coords.x2.1' to
'coords.x2.'

Both the Error and Warnings are new, and are actually related: if I do:
writeOGR() works fine.

Could a more explicit error message, linking the error to the problem with
the names, be issued by writeOGR() ? Initially I even thought I could have a
disk problem!

I recently upgraded from ubuntu 9.04 to 9.10 and to libgdal1-1.7.0.
R version 2.11.0 (2010-04-22)
 Package: rgdal
Version: 0.6-27
Date: 2010-05-11

Thanks

Agus