Skip to content
Prev 3750 / 29559 Next

Error in converting SpatialPointsDataFrame object to ESRI shape file using writeOGR from rgdal package

On Mon, 16 Jun 2008, Debarchana Ghosh wrote:

            
The issue seems to be that the underlying DBF format cannot handle field 
names which are longer than 11 characters. I've looked at:

names(test500.gwr$SDF) <- make.names(names(test500.gwr$SDF))

and tried abbreviate() too, and toupper() without much luck. Maybe:

toupper(gsub("\\.", "_", make.names(substring(names(test500.gwr$SDF), 1,
   7), unique=TRUE)))

or even less than 7 if need be?

What else apart from shapefiles can Arc read that writeOGR can write that 
would let us get round using DBF?

Roger