[postgis-tickets] [PostGIS] #2634: geography regression failure ST_DWithin/ST_Distance between 2.0.4 and 2.1.2 for dimensional mix of geographies
PostGIS
trac at osgeo.org
Thu Feb 6 14:38:50 PST 2014
#2634: geography regression failure ST_DWithin/ST_Distance between 2.0.4 and 2.1.2
for dimensional mix of geographies
----------------------+-----------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: critical | Milestone: PostGIS 2.1.2
Component: postgis | Version: 2.1.x
Keywords: |
----------------------+-----------------------------------------------------
Comment(by robe):
Hmm haven't gotten 2.1.0 to give an unstable answer for below even after
10 attempts
PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 32-bit POSTGIS="2.1.0
r11822" GEOS="3.4.2-CAPI-1.8.2 r0" PROJ="Rel. 4.8.0, 6 March 2012"
GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.7.8" LIBJSON="UNKNOWN"
RASTER
{{{
SELECT t1.gid As t1_gid, t2.gid As t2_gid
, ST_DWithin(t1.geog, t2.geog,100)
, ST_Distance(t1.geog, t2.geog) As dist
FROM test_geogs As t1 CROSS JOIN test_geogs As t2;
t1_gid | t2_gid | st_dwithin | dist
--------+--------+------------+------
1 | 1 | t | 0
1 | 2 | t | 0
2 | 1 | t | 0
2 | 2 | t | 0
}}}
I do however get the same screwy answers for:
{{{
with geogp(gid, geog) AS (VALUES (1, 'POINT(-11.1111111 40)'::geography),
(1, 'POINT(-11.1111111 40)'::geography))
, geoglm (gid, geog) AS (VALUES
(3, 'LINESTRING M (-10 50 1,50 -10 1)'::geography),
(4, 'LINESTRING M (-10 50 2,50 -10 2)'::geography) )
SELECT geogp.gid As p_gid, geoglm.gid As lm_gid, ST_Distance(geogp.geog,
geoglm.geog,false) As dist
, _ST_DistanceUncached(geogp.geog, geoglm.geog, false) As distunc
FROM geogp CROSS JOIN geoglm ;
p_gid | lm_gid | dist | distunc
-------+--------+------------------+-----------------
1 | 3 | 1010519.2194355 | 1010519.2194355
1 | 4 | 1011346.61455377 | 1010519.2194355
1 | 3 | 1011346.61455377 | 1010519.2194355
1 | 4 | 1011346.61455377 | 1010519.2194355
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2634#comment:12>
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