Skip to content
Prev 28506 / 29559 Next

Error: cons memory exhausted (limit reached?): Memory Management?

Thanks for the tips, Roger. I shall look into the possibilities that you discuss. Best wishes, Chris
On Wednesday, 20 January 2021, 10:57:26 GMT, Roger Bivand <roger.bivand at nhh.no> wrote:

        
On Wed, 20 Jan 2021, Christopher Lloyd via R-sig-Geo wrote:

            
Have you tried to use the sf package instead?
RHEL 7 is pretty old. The last PROJ 4.9.* and possibly GDAL 2.2.* may work 
OK, but anything after that first hits changes from PROJ 5, then switches 
in both PROJ, GDAL and GEOS to C++11, then the complete remake in PROJ >= 
6 with GDAL >= 3. PROJ >= 6 should not be used with GDAL < 3. The R 
versions are irrelevant, but sf/rgdal/sp versions matter.
Was GDAL rebuilt with the new PROJ (and GEOS)? Was rgdal re-installed with 
the new PROJ and GDAL?
R version irrelevant, PROJ should be properly aligned with GDAL (either 
old PROJ with old GDAL or PROJ >= 6 with GDAL >= 3). Don't rely on the 
server admins to understand this, if necesssary build from source (this is 
running as a single thread anyway, so the big machine is only useful for 
having a lot of memory, not an HPC issue). My guess is that the modules 
being loaded are not matched with each other.

Probably in any case this task should read the geojson into a PostGIS db 
and possibly use PostGIS or sf's database access functionality to handle 
the topological operations. I don't think that this is about memory 
management, there is plenty of RAM, but sf, PostGIS and maybe rpostgis.

Hope this helps,

Roger