Re: [R] SpatialPolygonsDataFrame holes problem

2011-07-10 Thread Dan Bebber
Thank you very much, this code worked. I will refer future geospatial queries to R-sig-geo, as suggested. I have also edited the original shapefile in QGIS to remove the error, as suggested by Barry Rowlingson. Dan -Original Message- From: Roger Bivand [mailto:roger.biv...@nhh.no] Sent:

Re: [R] SpatialPolygonsDataFrame holes problem

2011-07-09 Thread Roger Bivand
On Sat, 9 Jul 2011, Dan Bebber wrote: I have obtained shapefiles for Indian states from here: http://www.maptell.com/index.php?option=com_remository&Itemid=159&func=fileinfo&filecatid=115&parent=category Problem: I want to extract centroid coordinates for each State, but there is some coding p

[R] SpatialPolygonsDataFrame holes problem

2011-07-09 Thread Dan Bebber
I have obtained shapefiles for Indian states from here: http://www.maptell.com/index.php?option=com_remository&Itemid=159&func=fileinfo&filecatid=115&parent=category Problem: I want to extract centroid coordinates for each State, but there is some coding problem with the shapefiles that prevents