[R-sig-Geo] writeOGR error: problem with GDAL (libgdal1- 1.7.0)

Henk Sierdsema Henk.Sierdsema at sovon.nl
Wed Jul 21 13:17:48 CEST 2010


Hi Augustin,

I've encountered the same problem after an update of the rgdal-package. I have resolved the problem by removing the rgal-folder in the library and replacing it by an older version of November 2009. You can download that version of www.sovon.nl/temp/rgdal_nov_2009.zip

Success!

Henk



-----Oorspronkelijk bericht-----
Van: r-sig-geo-bounces at stat.math.ethz.ch
[mailto:r-sig-geo-bounces at stat.math.ethz.ch]Namens Agustin Lobo
Verzonden: vrijdag 21 mei 2010 7:39
Aan: r-sig-geo at stat.math.ethz.ch
Onderwerp: [R-sig-Geo] 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

> writeOGR(Montseny20090409shtotspols, dsn="Montseny20090409tots2",
> layer="Montseny20090409shtots2",driver="ESRI Shapefile")
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:
> names(Montseny20090409shtotspols at data)[31]<-"UTMX"
> names(Montseny20090409shtotspols at data)[32]<-"UTMY"

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
-- 
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/writeOGR-error-problem-with-GDAL-libgdal1-1-7-0-tp5082811p5082811.html
Sent from the R-sig-geo mailing list archive at Nabble.com.

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list