[postgis-tickets] [PostGIS] #2534: st_distance is returning incorrect results for large geographies
PostGIS
trac at osgeo.org
Wed Nov 6 23:47:09 PST 2013
#2534: st_distance is returning incorrect results for large geographies
------------------------------------+---------------------------------------
Reporter: samuelb | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.1
Component: postgis | Version: 2.0.x
Keywords: st_distance, geography |
------------------------------------+---------------------------------------
Comment(by samuelb):
For the same polygon I also noticed that 0 is returned when a point is
near the edge but on the outside of the polygon
e.g.
SELECT st_distance(st_geographyfromtext('POINT(-21.4 -21.4)'),
st_geographyfromtext('POLYGON((-20 -20,-20 60,90 60,90 -20,-20 -20))'))
SELECT st_distance(st_geographyfromtext('POINT(-21.4 61.8)'),
st_geographyfromtext('POLYGON((-20 -20,-20 60,90 60,90 -20,-20 -20))'))
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2534#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