Ticket #1610 (closed enhancement: fixed)
Support for larger objects in ST_Intersection(geography)
| Reported by: | realityexists | Owned by: | pramsey |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.1.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | history | Cc: |
Description
Please enhance ST_Intersection(geography) and ST_Intersects(geography) to handle larger shapes than they currently support and shapes touching the poles by internally transforming to a Gnomic projection as necessary. A simple test case:
WITH data AS
(
SELECT ST_GeogFromText('POLYGON((170 50,170 72,-130 72,-130 50,170 50))') AS poly1,
ST_GeogFromText('POLYGON((-170 68,-170 90,-141 90,-141 68,-170 68))') AS poly2
)
SELECT ST_AsText(ST_Intersection(poly1, poly2))
FROM data
Expected result: POLYGON((-170 74.053793645338,-141 73.4268621378904,-141 68,-170 68,-170 74.053793645338))
Current result: POLYGON((-130 58.1309106133234,-130 65.0979231965232,-86.8913306802836 49.9999999999887,-104.762597274101 49.9999999999887,-130 58.1309106133234))
Change History
Note: See
TracTickets for help on using
tickets.
