[postgis-tickets] [PostGIS] #2605: armel: _ST_Covers() returns true for point in hole
PostGIS
trac at osgeo.org
Tue Jan 7 13:38:53 PST 2014
#2605: armel: _ST_Covers() returns true for point in hole
---------------------+------------------------------------------------------
Reporter: mwanner | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.2
Component: postgis | Version: 2.1.x
Keywords: |
---------------------+------------------------------------------------------
I tracked down an issue in the topology test suite (test addpolygon) to
the following (on ARM, little-endian):
{{{
test=# SELECT _ST_Covers('POLYGON((9 28, 16 29, 16 23, 10 23, 9 28),
(15 25, 13 27, 11 24, 15
25))'::geometry,
'POINT(13 25)'::geometry);
_st_covers
------------
t
(1 row)
}}}
The point in question in excluded by the hole, so _ST_Covers() should
return false. It works properly if you use a small polygon, instead:
{{{
test=# SELECT _ST_Covers('POLYGON((9 28, 16 29, 16 23, 10 23, 9 28),
(15 25, 13 27, 11 24, 15
25))'::geometry,
'POLYGON((13 25, 13.1 25, 13 25.1, 13
25))'::geometry);
_st_covers
------------
f
(1 row)
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2605>
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