search for: spatstas

Displaying 3 results from an estimated 3 matches for "spatstas".

Did you mean: spatstat
2017 Jun 01
3
[spatstat] Convert shapefile to pixel image
..., polygon by polygon, but then I cannot merge the resulting images into a single one. Any idea? Second: I would also need a single window containing all the smallest polygons (the boundary). I have tried: w <- union.owin(z) But the resulting window w still shows internal polygons. As read in spatstas FAQ page: "First, convert each of the regions into a separate owin object. Then apply union.owin to combine them." So I try, regions <- slot(y, "polygons") regions <- lapply(regions, function(x) { SpatialPolygons(list(x)) }) windows <- lapply(regions, as.owin) But...
2017 Jun 01
0
[spatstat] Convert shapefile to pixel image
...merge the resulting images into a single one. Any idea? > > Second: > > I would also need a single window containing all the smallest polygons (the boundary). I have tried: > > w <- union.owin(z) > > But the resulting window w still shows internal polygons. As read in spatstas FAQ page: > > "First, convert each of the regions into a separate owin object. Then apply union.owin to combine them." > > So I try, > > regions <- slot(y, "polygons") > regions <- lapply(regions, function(x) { SpatialPolygons(list(x)) }) > windo...
2017 Jun 01
0
[spatstat] Convert shapefile to pixel image
..., polygon by polygon, but then I cannot merge the resulting images into a single one. Any idea? Second: I would also need a single window containing all the smallest polygons (the boundary). I have tried: w <- union.owin(z) But the resulting window w still shows internal polygons. As read in spatstas FAQ page: "First, convert each of the regions into a separate owin object. Then apply union.owin to combine them." So I try, regions <- slot(y, "polygons") regions <- lapply(regions, function(x) { SpatialPolygons(list(x)) }) windows <- lapply(regions, as.owin) But...