Solution: This attribute is not present in the shapefile itself, thus it cannot be imported. There is a function checkPolygonsHoles in the maptools package to fill out the attribute fields in your imported shapefile structure. I.e. you need to caluculate the value of that hole-field yourself, like so:
shp <- readShapePoly(...);shp@polygons <- lapply(shp@polygons, checkPolygonsHoles);
Keine Kommentare:
Kommentar veröffentlichen