Ticket #1173 (closed defect: wontfix)
TopologyException from intersection of valid geography
| Reported by: | jgilman | Owned by: | strk |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | Cc: |
Description
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
