[geos-devel] [GEOS] #960: Exception when creating geometry buffer

GEOS geos-trac at osgeo.org
Mon Sep 14 12:46:46 PDT 2020


#960: Exception when creating geometry buffer
---------------------------------------+---------------------------
 Reporter:  allenkim0129               |       Owner:  geos-devel@…
     Type:  defect                     |      Status:  new
 Priority:  blocker                    |   Milestone:
Component:  Default                    |     Version:  3.6.2
 Severity:  Unassigned                 |  Resolution:
 Keywords:  Buffer, TopologyException  |
---------------------------------------+---------------------------

Comment (by mdavis):

 Replying to [comment:3 strk]:
 > Martin can the usability range be computed to avoid such occurrences ?

 Maybe.  It might be that if the length of the end segments is less than
 the buffer distance then there may be visual artifacts present.  That
 would certainly include this case.  It's an overly aggressive heuristic
 though, since it would prevent running lots of cases which would not show
 artifacts.

 A more sophisticated heuristic would be to check if the end cap line
 intersected any of the side offset lines.

 But if what you are suggesting is throwing an error such as "Unable to
 compute buffer for given buffer distance", then this could just be emitted
 as the error when a TopologyException occurs.

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/960#comment:4>
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