[postgis-devel] [PostGIS] #1173: TopologyException from intersection of valid geography

PostGIS trac at osgeo.org
Fri Aug 26 10:06:10 PDT 2011


#1173: TopologyException from intersection of valid geography
---------------------+------------------------------------------------------
 Reporter:  jgilman  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 I have a polygon that wraps around the north pole.  When I do an
 intersection with this polygon and a point below the equator I get a
 TopologyException.

 SQL:
 select ST_AsText( ST_Intersection( ST_GeogFromText( 'SRID=4326;POLYGON((45
 80,135 80,-135 80,-45 80,45 80))' ), ST_GeogFromText( 'SRID=4326;POINT(45
 -70)' ) ) );

 Result:
 NOTICE:  TopologyException: found non-noded intersection between
 LINESTRING (5.00938e+06 1.54966e+07, 1.50281e+07 1.54966e+07) and
 LINESTRING (1.50281e+07 1.54966e+07, -1.50281e+07 1.54966e+07) at
 5.00938e+06 1.54966e+07
 CONTEXT:  SQL function "st_intersection" statement 1
 ERROR:  GEOS Intersection() threw an error!
 CONTEXT:  SQL function "st_intersection" statement 1

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1173>
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