[postgis-tickets] [PostGIS] #3729: ST_Intersects works incorrect for simple MULTIPOLYGON
PostGIS
trac at osgeo.org
Mon Mar 13 10:44:30 PDT 2017
#3729: ST_Intersects works incorrect for simple MULTIPOLYGON
---------------------+---------------------------
Reporter: biog | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.3.3
Component: postgis | Version: 2.3.x
Keywords: |
---------------------+---------------------------
I got strange result for ST_Intersects function
{{{
SELECT ST_Intersects(
ST_GeographyFromText('SRID=4326;MULTIPOLYGON(((-131.66015625
50.7121128961851,-131.30859375 23.2060096376488,-59.58984375
22.8825014343701,-60.64453125 51.1552316115623,-131.66015625
50.7121128961851)))'), ST_GeographyFromText('SRID=4326;POINT(-80.265919
26.068188)'));
st_intersects
---------------
f
(1 row)
}}}
I'm 100% sure that point intersects multipolygon.
It works as expected for geometry type:
{{{
SELECT ST_Intersects( ST_GeomFromText('MULTIPOLYGON(((-131.66015625
50.7121128961851,-131.30859375 23.2060096376488,-59.58984375
22.8825014343701,-60.64453125 51.1552316115623,-131.66015625
50.7121128961851)))', 4326), ST_GeomFromText('POINT(-80.265919
26.068188)', 4326));
st_intersects
---------------
t
(1 row)
}}}
I use latest PostgreSQL 9.6.2 on Debian Jessie.
{{{
SELECT PostGIS_full_version();
postgis_full_version
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
POSTGIS="2.3.2 r15302" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6
March 2012" GDAL="GDAL 1.10.1, released 2013/08/26" LIBXML="2.9.1"
LIBJSON="0.11.99" RASTER
(1 row)
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3729>
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