[PostGIS] #5674: ST_CoveredBy(geography, geography) not working for covered polygon with hole
PostGIS
trac at osgeo.org
Fri Feb 23 01:42:02 PST 2024
#5674: ST_CoveredBy(geography, geography) not working for covered polygon with
hole
------------------------+---------------------
Reporter: dbiernacka | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone:
Component: postgis | Version: 3.4.x
Keywords: |
------------------------+---------------------
Following statement returns false for covered polygon with hole
{{{
select ST_CoveredBy(
ST_GeographyFromText('POLYGON ((3.845215 46.407564, 3.845215 47.886881,
7.097168 47.886881, 7.097168 46.407564, 3.845215 46.407564), (6.569824
46.980252, 5.822754 46.860191, 6.28418 47.561701, 6.569824 46.980252))'),
ST_GeographyFromText('POLYGON ((1.120605 45.383019, 1.120605 48.661943,
8.657227 48.661943, 8.657227 45.383019, 1.120605 45.383019))')
)
}}}
Case when covering polygon contains hole returns true as expected.
Function ST_CoveredBy with geometry parameters returns true as expected.
Tested on versions:
POSTGIS="3.2.3 2f97b6c" [EXTENSION] PGSQL="140" GEOS="3.9.0-CAPI-1.16.2"
PROJ="7.2.1" LIBXML="2.9.10" LIBJSON="0.15" LIBPROTOBUF="1.3.3"
WAGYU="0.5.0 (Internal)" TOPOLOGY
POSTGIS="3.5.0dev 3.4.0rc1-775-g86e698565" [EXTENSION] PGSQL="150"
GEOS="3.13.0dev-CAPI-1.18.0" PROJ="9.4.0 NETWORK_ENABLED=OFF
URL_ENDPOINT=https://cdn.proj.org
USER_WRITABLE_DIRECTORY=/var/lib/postgresql/.local/share/proj
DATABASE_PATH=/usr/local/share/proj/proj.db" LIBXML="2.9.10"
LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5674>
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