Skip to content
Prev 10168 / 29559 Next

warning at creating SpatialPolygonsDataFrame and error at saving through rgdal

The error in wirteOGR() was caused by the long names of the variables
in the table
of the SPDF object that were listed in the warnings. Fixed by renaming
some columns in the data slot to shorter names.

The error was not related to the warnings issued at creating the SPDF
object by my function,
those were easily fixed and are of no general interest (and of particular shame)

I wonder if the error  message in writeOGR() could be more
informative. Actually, I initially discarded the long names
as the cause of the error because, according to the warning messages,
those names had been automatically truncated.

Thanks!

Agus

2010/11/29 Agustin Lobo <alobolistas at gmail.com>:
Message-ID: <AANLkTin9+k7qLerZ1UFubz6r9-t_JtEePxte9OVifyRe@mail.gmail.com>
In-Reply-To: <AANLkTi=spvfTyKfc9P2erX_Lc31mnqks49oNFuu3gt-G@mail.gmail.com>