Skip to content
Prev 20075 / 29559 Next

invalid class “SpatialPolygons” object: non-unique Polygons ID slot values

Had looked into the vignette. No, it does not really help. spRbind() is only
mentioned in "2.1 Dissolving Polygons" and not in "3.1 Combining
Positional Data".
Including an example where the  "non-unique Polygons ID slot values" occurs in
section 3.1. and the way to fix it using spRbind() would be very helpful. But
having the same example in the help page also would be even better.
I also find the Note
"2. some rbind can accept objects with duplicated IDs,..."
in the spRbind help page very confusing, as it is vague and the rbind
help page does not mention spatial objects at all.

The error I mention is frequent when combining SpPolDF objects that
come from  imported shapefiles
and is probably rare in "only R" processing chains.

Thanks for caring about this.

Agus
On Fri, Dec 20, 2013 at 8:14 PM, Roger Bivand <Roger.Bivand at nhh.no> wrote: