Ticket #1046 (closed defect: fixed)
Invalid geography polygons: BOOM! Could not generate outside point!
| Reported by: | mwtoews | Owned by: | pramsey |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | 1.5.X |
| Keywords: | geography boom | Cc: |
Description
I've seen a few "BOOM" errors over the past few months (e.g., 1 2). For example, with PostGIS SVN r7443:
SELECT ST_Intersects('POINT(160 43)'::geography, 'POLYGON((0 0, 0 90, 180 90, 180 0, 0 0))'::geography);
SELECT ST_Area('POLYGON((0 0, 0 90, 180 90, 180 0, 0 0))'::geography);
The error comes from liblwgeom/lwgeodetic.c, with the famous last words [comments] "This should never happen".
Note, the above geography polygon does not make any sense to the Great Circle Mapper. I can think up many more invalid geography polygons that produce the same "BOOM" error.
Change History
Note: See
TracTickets for help on using
tickets.
