[postgis-tickets] [PostGIS] #2945: ST_ClipByBox2D raises an exception with unclosed polygon rings input

PostGIS trac at osgeo.org
Tue Sep 30 09:41:07 PDT 2014


#2945: ST_ClipByBox2D raises an exception with unclosed polygon rings input
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 By contract ST_ClipByBox2D should never raise an exception.
 It does when fed polygons with unclosed rings.
 The problem is that the function is implemented in GEOS so the input
 geometry must be "convertible" even if not topologically valid.

 I think the quickest way to fix this would be to add an optional parameter
 in the postgis-to-geos converter to allow automatically "fixing enough for
 geos to be happy" those geometries. There's code for that in the
 ST_MakeValid code path...

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2945>
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