Skip to content
Prev 13911 / 29559 Next

rgeos 0.2-1 released

Roger,
   Thanks to all for efforts to improve this very useful package.

   I am going to cautiously suggest that the memory leak with 
raster::rasterToPolygons(x, dissolve=TRUE) which calls 
rgeos::gUnaryUnion() is  fixed -- or has improved considerably.

Previously,  running this function on a raster of 800 000 cells (which, 
as you pointed out in another thread, is at the best of times a memory 
intensive task) quickly consumed all the available overhead memory and 
headed into disk swapping.  Now, I can run the same raster and memory is 
consumed up to what appears to be the R gc() trigger point, and then 
stabilizes (suggesting that R can now release the memory, which it 
previously could not).  I should note, however, that 7 GB was freed only 
after the R instance was closed.  Calls to gc() did not release this.  
This may be expected behaviour, not sure.

(Run under 64bit R 2.14.1).

Thanks!
Paul