[postgis-tickets] [PostGIS] #3949: Infinite (?) loop in distance calculation

PostGIS trac at osgeo.org
Thu Dec 21 11:17:54 PST 2017


#3949: Infinite (?) loop in distance calculation
----------------------+---------------------------
  Reporter:  pramsey  |      Owner:  nicklas
      Type:  defect   |     Status:  assigned
  Priority:  high     |  Milestone:  PostGIS 2.4.3
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------
Description changed by pramsey:

Old description:

> For the pair of attached geometries, the standard distance code appears
> to go into an infinite (at least, very long) loop. Similarly sized
> geometries can run distance calculations in a few 10s of ms.
> {{{
> select st_
>   distance(a.geom, b.geom),
>   a.edabbr, b.edabbr,
>   st_memsize(a.geom), st_memsize(b.geom)
> from inf_distance a, inf_distance b;
> }}}

New description:

 For the pair of attached geometries, the standard distance code appears to
 go into an infinite (at least, very long) loop. Similarly sized geometries
 can run distance calculations in a few 10s of ms.
 {{{
 select
   st_distance(a.geom, b.geom),
   a.edabbr, b.edabbr,
   st_memsize(a.geom), st_memsize(b.geom)
 from inf_distance a, inf_distance b;
 }}}

--

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