[R-sig-Geo] conversion from tessellation in spatstat package to sp classes ???

Volkan Kepoglu vkepoglu at gmail.com
Mon Jan 19 22:43:45 CET 2009


Is there any way to convert from tessellation to sp classes like
SpatialLines or SpatialPolygons?

library(spatstat)
library(maptools)
x <- runifpoint(42)
t <- dirichlet(x)
plot(t)
plot(x, add=TRUE)

sp <- as(t, "SpatialPolygons")
Error in .classEnv(thisClass) :
  unable to find an environment containing class "tess"

any other suggestion?




More information about the R-sig-Geo mailing list