Re: [R-sig-Geo] convertion delaunay triangulation to SpatialPolygons

2010-04-20 Thread Volkan Kepoglu
Hi, that is working, great news! Thank you very much Dear A. Baddeley. with my best regards, Volkan Kepoglu On Tue, Apr 20, 2010 at 6:07 AM, wrote: > Sorry, that should of course have read delaunay(X) not dirichlet(X) > > A > > &

Re: [R-sig-Geo] convertion delaunay triangulation to SpatialPolygons

2010-04-18 Thread Volkan Kepoglu
Dear Turner, Thanks very much for your reply, I hope you will recently implement this utility. Regards, Volkan Kepoglu. On Sat, Apr 17, 2010 at 3:48 AM, Turner Rolf wrote: > > Volkan Kepoglu wrote: > > Hi, > > how can i convert the delaunay triangulation t

[R-sig-Geo] convertion delaunay triangulation to SpatialPolygons

2010-04-16 Thread Volkan Kepoglu
", length=length(w)) for (i in seq(along=polys)) { pcrds <- cbind(w[[i]]$x, w[[i]]$y) pcrds <- rbind(pcrds, pcrds[1,]) polys[[i]] <- Polygons(list(Polygon(pcrds)), ID=as.character(i)) } SP <- SpatialPolygons(polys) plot(SP) plot(df_xy, add=T, col="RED") is there any

[R-sig-Geo] Spatstat package: help generating random point pattern with different window

2009-10-21 Thread Volkan Kepoglu
I loaded spatstat, maptools, rgdal packages. I want to generate random point pattern with different window derived from polygon shp file. but i can not pass new owin argument to rpoispp > spdf = readOGR(dsn="polygon.shp",layer= "polygon") > sp_owin = as(as(spdf,"SpatialPolygons"),"owin") > sp_owi

Re: [R-sig-Geo] Bivariate Inhomogeneous K function?

2009-09-16 Thread Volkan Kepoglu
hi, you may try: Kinhow function for Inhomogeneous K-function in spatstat package. regards, Volkan Kepoglu On Wed, Sep 16, 2009 at 4:20 PM, Enrico R. Crema wrote: > Dear List, > > I was wondering if there is actually a bivariate version of > inhomogenous K function. My dataset

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

2009-01-19 Thread Volkan Kepoglu
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 cont

[R-sig-Geo] adaptive kernel density

2008-04-24 Thread volkan kepoglu
Dear list, I am trying to use R and would like to know which library support adaptive kernel density computation using spatial data. Thanks alot, volkan. [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.

[R-sig-Geo] R to Python - rpy - definition of window pattern, related with 'spatstat library - help needed

2008-02-04 Thread volkan kepoglu
x(shpPoint)["coords.x1","max"]), (r.bbox(shpPoint)["coords.x2","min"]), (r.bbox(shpPoint)["coords.x2","max"]))) Traceback (most recent call last): File "", line 1, in TypeError: sequence index must be integer, not 'tuple'