[postgis-tickets] [PostGIS] #3245: inconsistent ownerhips rules from liblwgeom mediated GEOS constructive functions

PostGIS trac at osgeo.org
Wed Aug 19 09:33:25 PDT 2015


#3245: inconsistent ownerhips rules from liblwgeom mediated GEOS constructive
functions
---------------------+---------------------------
 Reporter:  strk     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 2.2.0
Component:  postgis  |    Version:  2.0.x
 Keywords:           |
---------------------+---------------------------
 The functions lwgeom_clip_by_rect, lwgeom_difference,
 lwgeom_symdifference, lwgeom_intersection, lwgeom_unaryunion,
 lwgeom_linemerge (and maybe others) contain short-circuits that simply
 return a clone of one of the arguments, but the clone is not deep so that
 the caller doesn't know if the arguments can be freely released w/out
 destroying the return.

 For consistency reasons it'd be good to always give the caller a fully
 owned object.

 I think this problem goes back as long as 2.0, but not sure if it is worth
 fixing that much in the past.

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