Re: [R-sig-Geo] Writing a byte image

2009-02-26 Thread Robert Hijmans
Hi Ned, This should work: # Set output image properties predrast <- setRaster(spot) predrast <- setDatatype(predrast, 'INT1U') filename(predrast) <- outImage etc. Robert On Thu, Feb 26, 2009 at 10:15 PM, Ned Horning wrote: > What is the recommended way to output a large byte GeoTiff image o

Re: [R-sig-Geo] stratified random sampling

2009-02-26 Thread Roger Bivand
On Wed, 25 Feb 2009, Roger Bivand wrote: On Tue, 24 Feb 2009, Heuvelink, Gerard wrote: Dear list, The stratified random sampling problem that I submitted a few days ago has already been solved, with the help of several of you, notably Edzer Pebesma. Edzer came up with the following solution

[R-sig-Geo] Writing a byte image

2009-02-26 Thread Ned Horning
What is the recommended way to output a large byte GeoTiff image one line at a time? I am creating large double and integer images using writeRaster to create a GeoTiff file. I've been converting these to a byte data type outside of R but it would be nice to R to output a byte GeoTiff directly.

Re: [R-sig-Geo] R: help to creating a points subset with R: Cut points shapefaile with a buffer polygon shapefile

2009-02-26 Thread Paul Hiemstra
Hi, Please also send your replies to the mailing list, and not only to me personally. Other people might have better ideas than I have. If your shapefile is too big for your memory, try to cut it up and do your analysis on a subset of both your point data and polygon data. And please provide