[postgis-devel] [PostGIS] #1046: Invalid geography polygons: BOOM! Could not generate outside point!

PostGIS trac at osgeo.org
Wed Feb 8 13:58:12 PST 2012


#1046: Invalid geography polygons: BOOM! Could not generate outside point!
----------------------------+-----------------------------------------------
 Reporter:  mwtoews         |       Owner:  pramsey      
     Type:  defect          |      Status:  new          
 Priority:  medium          |   Milestone:  PostGIS 2.0.0
Component:  postgis         |     Version:  1.5.X        
 Keywords:  geography boom  |  
----------------------------+-----------------------------------------------

Comment(by pramsey):

 What would you think of these results?
 {{{

 postgis20=# SELECT ST_Area('POLYGON((0 0, 0 90, 180 90, 180 0, 0
 0))'::geography);
 ERROR:  Invalid geography. Antipodal edge (180 degrees long) detected.
 (180 0,0 0)
 LINE 1: SELECT ST_Area('POLYGON((0 0, 0 90, 180 90, 180 0, 0 0))'::g...
                        ^
 postgis20=# SELECT ST_Intersects('POINT(160 43)'::geography, 'POLYGON((0
 0, 0 90, 180 90, 180 0, 0 0))'::geography);
 ERROR:  Invalid geography. Antipodal edge (180 degrees long) detected.
 (180 0,0 0)
 LINE 1: SELECT ST_Intersects('POINT(160 43)'::geography, 'POLYGON((0...

 }}}

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