[postgis-devel] [PostGIS] #547: ST_contains memory problem when used between polygon and mixed geometry
PostGIS
trac at osgeo.org
Thu May 12 18:13:11 PDT 2011
#547: ST_contains memory problem when used between polygon and mixed geometry
--------------------------------+-------------------------------------------
Reporter: twain | Owner: chodgson
Type: defect | Status: new
Priority: high | Milestone: PostGIS 1.5.3
Component: postgis | Version: 1.5.X
Keywords: ST_contains memory |
--------------------------------+-------------------------------------------
Changes (by chodgson):
* owner: pramsey => chodgson
Comment:
A quick test - ESRI's standard world shapefiles, tested running PIP on
cities in countries, ~2500 cities and ~250 countries.
{{{
select st_intersects(co.the_geom, ci.the_geom) from country co, cities ci;
}}}
This takes 8 seconds with the rtree code in place. If I removed the rtree
shortcut in the intersection function by replacing the "if (one is a point
and the other is poly)" with "if(0)" - it takes 28 seconds. That is the
second run timings and it doesn't get any different with more runs. This
is enough of a difference that I think it is worth keeping both
implementations around for now.
So I think I'd like to do the "super-cache" struct to hold both the geos
prepared_geom and the rtree index in fn_extra.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/547#comment:4>
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-devel
mailing list