[postgis-devel] [PostGIS] #1841: ST_Distance on PostGIS 2.0 is prohibitively slow
PostGIS
trac at osgeo.org
Wed May 23 11:21:41 PDT 2012
#1841: ST_Distance on PostGIS 2.0 is prohibitively slow
--------------------------------+-------------------------------------------
Reporter: andrewxhill | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: postgis | Version: 2.0.x
Keywords: st_distance, speed |
--------------------------------+-------------------------------------------
Running a query to get a pairwise distance calculation for a table takes
very long. I'm using this to generate a distance matrix for use in R.
An example query,
select a.a as g1, b.a as g2, st_distance(a.g, b.g) as d from a join a b on
a.a<b.a
Can take minutes on the following data,
st_distance - no spheroids
623 polygons with an average of 625 points each (single ring, shell only)
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1841>
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