[postgis-devel] [PostGIS] #845: ST_Intersects() precision error - returns false instead of true
PostGIS
trac at osgeo.org
Thu Feb 24 05:06:46 PST 2011
#845: ST_Intersects() precision error - returns false instead of true
------------------------+---------------------------------------------------
Reporter: cdestigter | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: 1.5.X
Keywords: |
------------------------+---------------------------------------------------
Comment(by strk):
I've tried switching point_in_polygon to use the crossing pt_in_ring_2d
and got failures with within and contains:
{{{
--- regress_ogc_expected 2011-01-04 09:54:58.000000000 +0100
+++ /tmp/pgis_reg_12408/test_39_out 2011-02-24 14:04:39.000000000
+0100
@@ -10,9 +10,9 @@
crosses|f
crosses|t
within100|t
-within101|f
+within101|t
within102|f
-within103|f
+within103|t
within104|f
within105|t
within106|t
@@ -45,9 +45,9 @@
intersects155|t
intersects156|f
contains100|t
-contains101|f
+contains101|t
contains102|f
-contains103|f
+contains103|t
contains104|f
contains105|t
contains106|t
}}}
Those tests might need a double-check for correctness, but anyway both
'within' and 'contains' make a distinction between _inside_ and
_on_the_boundary_, which pt_in_ring_2d doesnt' do.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/845#comment:16>
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-devel
mailing list