[postgis-tickets] [PostGIS] #3570: Reduce memory usage in ST_ClusterWithin / ST_ClusterDBSCAN

PostGIS trac at osgeo.org
Fri Jun 3 04:01:00 PDT 2016


#3570: Reduce memory usage in ST_ClusterWithin / ST_ClusterDBSCAN
-------------------------+---------------------------
 Reporter:  dbaston      |      Owner:  dbaston
     Type:  enhancement  |     Status:  new
 Priority:  medium       |  Milestone:  PostGIS 2.3.0
Component:  postgis      |    Version:  2.2.x
 Keywords:               |
-------------------------+---------------------------
 The {{{make_strtree}}} function in {{{lwgeom_geos_cluster.c}}} prepares a
 GEOS STRTree of LWGEOM pointers.  To store the LWGEOMs in the STRTree, it
 has to provide {{{GEOSSTRtree_insert}}} with a GEOS geometry whose
 envelope corresponds to the envelope of the LWGEOM.  It's currently doing
 this with {{{GBOX2GEOS}}}, which produces a rectangular GEOS Polygon.
 Since this geometry is never used directly -- it's basically a container
 for an envelope -- this should be replaced with either a GEOS Point or a
 two-point GEOS LineString, depending on the LWGEOM that's being stored in
 the tree.

 This will reduce a significant memory overhead, particularly when
 clustering functions are used on point data sets.

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