Skip to content
Prev 5894 / 29559 Next

error in readShapePoly

On Wed, 10 Jun 2009, Hurlbert, Allen H. (Biology) wrote:

            
Well, they shouldn't be there, really. When I release maptools, with 
default delete_null_obj=FALSE, it will report which one, and then:

library(foreign)
tip <- read.dbf("trin_inca_pl.dbf")
tip[134,]

would show the contents of the DBF for the offending NULL geometry. 
Setting it to TRUE by default wouldn't warn the user that there was 
anything untoward. In this case, the file originator might want to know 
that a geometry has gone away, perhaps. In an earlier case, Statistics 
Australia was squirrelling data with no spatial position away in a NULL 
geometry, which is OK for the DBF, but not OK if the files are (as they 
are) intended to contain geometries with attributes.

Roger