Re: [R-sig-Geo] RSAGA .asc morphology loop question

2009-03-01 Thread Alexander Brenning
Hi, this... > for (i in length(asc.files[i])) { ...only works if the variable i existed previously, and it seems that its value happened to be 1 in your case. It then counts from length(asc.files[i]) to length(asc.files[i]); asc.files[i] is a vector of length one (because i is 1), so the for

Re: [R-sig-Geo] RSAGA .asc morphology loop question

2009-03-01 Thread Tim Sippel
Hi Alex- Thanks for the response, which helped me get a step closer to what I want. Now that I have removed the extensions from the files as you suggest, I am able to process one file, but am not able to process an entire directory of files. Upon running a loop over all files in the directory, it

Re: [R-sig-Geo] Point pattern analysis | Kernel estimation and Google Maps

2009-03-01 Thread Michel Barbosa
Dear Virgilio, thanks for the link. I'll have a look at it immediately. Kind regards, Michel 2009/3/1 Virgilio Gomez Rubio > Michel, > > In addition to the comments that have already been made, there is an > example of overlying results (IDW, but kernel estimation can be done in > a similar w

Re: [R-sig-Geo] Point pattern analysis | Kernel estimation and GoogleMaps

2009-03-01 Thread Michel Barbosa
Dear Barry, The Google Maps API gives me the bounds by calling the getBounds() function. This gives me the following bounds for example: ((51.888464736976516, 4.457187652587891), (51.92023802576216, 4.543018341064453)) I've used the following R code to generate the KDE surface: library(Cairo) l

Re: [R-sig-Geo] RSAGA .asc morphology loop question

2009-03-01 Thread Alexander Brenning
Hi Tim, the rsaga.esri.wrapper currently expects the in.* and out.* arguments (with the ASCII/float ESRI grids) to have NO file extension - the file extension to be used for all ESRI grids can be given by the esri.extension argument; it currently defaults to ".asc" when format="ascii" and to

[R-sig-Geo] Map thinning/generalisation

2009-03-01 Thread hadley wickham
Hi all, Is anyone aware of any code for performing topologically consistent polygon thinning/simplification/generalisation in R? Hadley -- http://had.co.nz/ ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/

Re: [R-sig-Geo] Point pattern analysis | Kernel estimation and Google Maps

2009-03-01 Thread Virgilio Gomez Rubio
Michel, In addition to the comments that have already been made, there is an example of overlying results (IDW, but kernel estimation can be done in a similar way) here: http://www.asdar-book.org/book/die.R Look at chunks 41 to 44. Hope this helps. Virgilio ___