[geos-devel] [GEOS] #1119: Buffer memory issue

GEOS geos-trac at osgeo.org
Thu Jun 3 11:02:31 PDT 2021

#1119: Buffer memory issue
 Reporter:  kalenik     |       Owner:  geos-devel@…
     Type:  defect      |      Status:  new
 Priority:  major       |   Milestone:  3.9.2
Component:  Default     |     Version:  3.9.0
 Severity:  Unassigned  |  Resolution:
 Keywords:              |

Comment (by mdavis):

 There are indeed issues with the memory usage of the current buffer
 algorithm - see [https://trac.osgeo.org/geos/ticket/344 GEOS-344] and
 [https://trac.osgeo.org/geos/ticket/693 GEOS-693] for examples.

 As Paul says, there is no easy fix for this.  So trying to condition the
 inputs or the process is the only short-term solution.

 I note that you are buffering with a distance of 99,999,999 and that the
 provided sample geometry has an extent of only about 400,000.  Also, the
 geometry is fairly complex (420K points with 1203 holes).  Computing a
 buffer that big on that kind of geometry is pushing the buffer algorithm
 way out of it's normal operating regime, and it basically is just going to
 produce a roundish blob anyway.

 One thing you can do is to buffer at a sequence of 2 or more increasing
 values.  In this case you could use a distance of 1,000,000, and then
 buffer at the 99,999,999 value.

 I also wonder what exactly you are trying to do?  That buffer distance of
 99,999,999 looks highly artificial.

Ticket URL: <https://trac.osgeo.org/geos/ticket/1119#comment:7>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

More information about the geos-devel mailing list