[PostGIS] #5703: ST_Intersects function is returning the wrong results for a simple rectangle that crosses any two quarter longitude lines

PostGIS trac at osgeo.org
Tue Apr 2 10:20:14 PDT 2024


#5703: ST_Intersects function is returning the wrong results for a simple
rectangle that crosses any two quarter longitude lines
------------------------+---------------------------
  Reporter:  hangstrap  |      Owner:  pramsey
      Type:  defect     |     Status:  new
  Priority:  medium     |  Milestone:  PostGIS 3.4.3
 Component:  postgis    |    Version:  3.4.x
Resolution:             |   Keywords:
------------------------+---------------------------
Comment (by pramsey):

 Seems true.
 {{{
 SELECT
   ST_AsText(g) AS geog,
   ST_Intersects(ST_GeogFromText('POLYGON ((  -5 -10,  -5 10,  95.0 10,
 95.0 -10 , -5 -10))'), v.g)
 FROM
   (VALUES
     ( ST_GeogFromText( 'POINT (-6 0)')),
     ( ST_GeogFromText( 'POINT (-4 0)')),
     ( ST_GeogFromText( 'POINT (94 0)')),
     ( ST_GeogFromText( 'POINT (96 0)'))
     ) v(g);
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5703#comment:1>
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