[postgis-tickets] [PostGIS] #3135: ST_SubDivide garden crasher on malformed polygon and linestring
PostGIS
trac at osgeo.org
Fri May 29 10:32:44 PDT 2015
#3135: ST_SubDivide garden crasher on malformed polygon and linestring
----------------------+---------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: closed
Priority: blocker | Milestone: PostGIS 2.2.0
Component: postgis | Version: trunk
Resolution: fixed | Keywords:
----------------------+---------------------------
Changes (by pramsey):
* cc: strk (removed)
* status: reopened => closed
* resolution: => fixed
Comment:
Your case is "fixed" at r13580, however it's not a perfect fix. It won't
crash anymore, no matter what you do, even if you pack your object with
enough repeated points to force another infinite recursion because I put
in a recursion stopper. If you **do** try that you'll find the output is
"wrong" as the portion of the object with the repeated points just
disappears into the aether. The overhead in trying to catch that case and
do the "right" thing (which is probably to remove the repeated points) is
just too high. Another possibility would be to stuff the whole input
object through the repeated points remover right at the start; not sure if
we want to do that. My proximate fix, to avoid dropping your slightly
repeating input was just to increase the minimum number of vertices we'd
guarantee, since my mind boggled at what it meant to ask the function
"only return polygons with no more than two vertices in them".
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3135#comment:7>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list