[postgis-tickets] [PostGIS] #3511: ST_Intersects returns false positives at equator and anti/prime meridian
PostGIS
trac at osgeo.org
Thu Apr 13 05:28:55 PDT 2017
#3511: ST_Intersects returns false positives at equator and anti/prime meridian
----------------------+---------------------------
Reporter: jgm1972 | Owner: pramsey
Type: defect | Status: closed
Priority: medium | Milestone: PostGIS 2.4.0
Component: postgis | Version: 2.2.x
Resolution: invalid | Keywords: ST_Intersects
----------------------+---------------------------
Comment (by jgm1972):
Can you elaborate on why
SELECT ST_Intersects(line, line2) as inter from
ST_GeogFromText('LINESTRING(180 -90, 180 0, 180 90)') As line,
ST_GeogFromText('LineString? (90 1, 0 0.1, -90.1 -1)') as line2;
returns true
but
SELECT ST_Intersects(line, line2) as inter from
ST_GeogFromText('LINESTRING(180 -90, 180 0, 180 90)') As line,
ST_GeogFromText('LineString? (90 1, 0 0, -90 -1)') as line2;
returns false?
The segments are <180 deg.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3511#comment:5>
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