[postgis-tickets] [PostGIS] #3524: Getting distance between united States and Russia in geography hangs up the server

PostGIS trac at osgeo.org
Sat Apr 9 13:13:30 PDT 2016


#3524: Getting distance between united States and Russia in geography hangs up the
server
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  high     |  Milestone:  PostGIS 2.1.9
 Component:  postgis  |    Version:  2.2.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by robe):

 For more fun, I decided to see what would happen if I simplified.  Took
 15:31 minutes to complete and returned an answer of 4434.16000.


 {{{
 -- US 12215 pts; Russia 14686
 SELECT ST_Distance(ST_Simplify(a.geom,0.01)::geography,
 ST_Simplify(b.geom,0.01)::geography) --::geography,
 ST_Simplify(b.geog::geometry,0.8)::geography)
 FROM   (SELECT  geom FROM ur_test WHERE name = 'United States') AS a
 ,  (SELECT  geom FROM ur_test WHERE name = 'Russia') AS b;
 }}}


 I also started the old unsimplified running, after 1 hr, 38 minutes and
 36 seconds, I still have no idea how far Russia is from US.  I'll keep it
 running because I really want to know now.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3524#comment:2>
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