[postgis-tickets] [PostGIS] #4135: Fix lwgeom_clip_by_rect

PostGIS trac at osgeo.org
Thu Jul 26 06:37:24 PDT 2018


#4135: Fix lwgeom_clip_by_rect
----------------------+---------------------------
 Reporter:  dbaston   |      Owner:  pramsey
     Type:  defect    |     Status:  new
 Priority:  critical  |  Milestone:  PostGIS 2.5.0
Component:  postgis   |    Version:  trunk
 Keywords:            |
----------------------+---------------------------
 The `lwgeom_clip_by_rect` function was introduced in 2.4 to:

 > Clip a geometry by a 2D box in a fast but possibly dirty way. The output
 geometry is not guaranteed to be valid (self-intersections for a polygon
 may be introduced). Topologically invalid input geometries do not result
 in exceptions being thrown.

 In trunk, this function has been redefined to delegate to
 `lwgeom_intersection` and is no longer consistent with the description
 above. This was done because of a reported
 [https://trac.osgeo.org/geos/ticket/865 bug in GEOS], but that bug report
 cannot be reproduced. If the GEOS bug report is invalid, then
 `lwgeom_clip_by_rect` should be reverted to its 2.4 state.


 Related: #4039, #4134

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