Skip to content
Prev 5645 / 29559 Next

How can I convert a "SpatialPolygons" object to a "polylist"?

And using shape2poly does not work either.

 >census_poly_sp <- shape2poly(census_sp, region.id = NULL)
Error in shape2poly(census_sp, region.id = NULL) :
  No shp component in this list


The above file was read in (see below). Internal
measurements are in long lats. I can spplot and
make a KML file just fine for example.
census_sp <- readShapePoly("HD_102_census_blocks_sp.shp",
IDvar="BLKIDFP00", proj4string=CRS("+init=epsg:4326"))


Thanks,
Jim Burke
Jim Burke wrote: