Skip to content
Prev 3454 / 29559 Next

readOGR and proj4 string

It works fine now, thanks.
Then, back to the original problem of recovering
a SpatialPolygonsDataFrame from a PolySet
(which I get after joinPolys() ):

a1 <- SpatialPolygons2PolySet(x)
attr(a1, "projection")
attr(attr(a1, "projection"), "zone") <- attr(a1, "zone")
attr(a1, "projection")
a2 <- PolySet2SpatialPolygons(a1)
a3 <- SpatialPolygonsDataFrame(a2,x at data)

where a3 is identical to x, right?

Almost there. The problem with the ring
after joinPolys() remains, though. Also, once
I'll able to get the result of joinPolys() back to
SpatialPolygons I will have to subset and update
the original data.frame.

Agus

Roger Bivand escribi?: