Displaying 1 result from an estimated 1 matches for "altc_mean".
2014 Jun 15
0
Problem with converting a list of grids to a list of polygons
...But I got stuck when I tried to convert the XMIN, XMAX, YMIN, YMAX - corner
points to a list of polygons (and keeping at least the ID as individuell
reference).
I really don?t get it, how can I read data of this format as a list of
polygons?
?head"(ID, XMIN, XMAX, YMIN, YMAX, lat, lng, altc_mean)
polys <- Polygons(list(Polygon(assemblage[,c("XMIN", "XMAX", "YMIN",
"YMAX?)])), ID=assemblage$ID)
SP <- SpatialPolygons(polys)
SPDF <- SpatialPolygonsDataFrame(SP, data=data.frame(x= assemblage$lng, y=
assemblage$lat, row.names=row.names(SP)))...