[postgis-devel] [PostGIS] #1864: ST_Intersection returns wrong values with high latitudes

PostGIS trac at osgeo.org
Wed Jun 13 11:01:06 PDT 2012


#1864: ST_Intersection returns wrong values with high latitudes
---------------------+------------------------------------------------------
 Reporter:  mhiper3  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 1.5.4
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 When using latitudes far from the equator the ST_Intersects() function
 returns unexpected values. These are some sample queries that show the
 inconsistent behavior:

 testdb=# select st_intersects(st_geographyfromtext('SRID=4326;POINT(-80
 65)'), st_geographyfromtext('SRID=4326;POLYGON((-100 67, -30 67, -30 62,
 -100 62, -100 67))'));
  st_intersects
 ---------------
  f
 (1 row)

 testdb=# select st_intersects(st_geographyfromtext('SRID=4326;POINT(-80
 65)'), st_geographyfromtext('SRID=4326;POLYGON((-100 67, -40 67, -40 62,
 -100 62, -100 67))'));
  st_intersects
 ---------------
  t
 (1 row)

 testdb=# select st_intersects(st_geographyfromtext('SRID=4326;POINT(-80
 15)'), st_geographyfromtext('SRID=4326;POLYGON((-100 17, -30 17, -30 12,
 -100 12, -100 17))'));
  st_intersects
 ---------------
  t
 (1 row)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1864>
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-devel mailing list