[R-sig-Geo] distmap

2007-06-22 Thread Agustin Lobo
Dear sig-geos, I have to calculate a distmap (that is, a map in which the value of each cell is the distance from the cell to a given object) for a set of polygons. It seems to me that distmap.owin in spatstat would do it fine, but distmap.owin does not accept objects imported from shp vectors via

Re: [R-sig-Geo] ESRI ASCII Grid file shifted

2007-06-22 Thread Roger Bivand
The root of the problem was that you did not notice that writeAsciiGrid in maptools can *only* write square grid cells, not rectangular grid cells. The following code shows how both spatstat and splancs can be set up to make square cells: library(spatstat) library(maptools) d <- readShapePoi

Re: [R-sig-Geo] Res: ODP: Generating vetor (shapefiles) in R

2007-06-22 Thread Rainer M. Krug
What about using grass 6 and the command r.to.vect - you can do this from R with the package spgrass6 Rainer Milton Cezar Ribeiro wrote: Dear Roger, I am simulating some analyzes on R, and the output are a lot of AscGrid (raster) maps. After generate these maps (about 1,000 of them), I need