[postgis-tickets] [PostGIS] #5355: PostGIS 3, ST_DWithin Query - "lwgeom_distance_spheroid returned negative!" by changing third arg? Postgres 11, Ubuntu 20.04

PostGIS trac at osgeo.org
Wed Mar 15 14:16:58 PDT 2023


#5355: PostGIS 3, ST_DWithin Query - "lwgeom_distance_spheroid returned negative!"
by changing third arg? Postgres 11, Ubuntu 20.04
----------------------+---------------------------
  Reporter:  dchun    |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.3.3
 Component:  postgis  |    Version:  3.3.x
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by pramsey):

 I'd expect if this is a geography distance issue to see things like
 variable results for:
 {{{
 SELECT ST_Distance('SRID=4326;POINT(-74.8456
 40.1752)'::geography,'SRID=4326;POINT(-118.493 34.0172)'::geography,
 true);
 SELECT _ST_DistanceTree('SRID=4326;POINT(-74.8456
 40.1752)'::geography,'SRID=4326;POINT(-118.493 34.0172)'::geography);
 SELECT _ST_DistanceUncached('SRID=4326;POINT(-74.8456
 40.1752)'::geography,'SRID=4326;POINT(-118.493 34.0172)'::geography,
 true);
 }}}
 Unfortunately for you, I'm not seeing any errors testing on 3.4 on my
 amazing Apple macbook, but I wouldn't be entirely surprised if you saw
 some.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5355#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