Ticket #5 (assigned defect)
tmerc "back folding" problems.
| Reported by: | warmerdam | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | major | Milestone: | 4.7.0 |
| Component: | Core | Version: | unspecified |
| Keywords: | tmerc | Cc: | geraldi.evenden@… |
Description
You can demonstrate the problem with the PROJ.4 commandline program cs2cs:
cs2cs +proj=latlong +datum=WGS84 +to +proj=utm +zone=32 +datum=WGS84
Give as input, this point in Alaska:
-149.66 64.237
And you get this:
522986.92 5029096.80 0.00
which is somewhere in Italy (near Milan).
I realize this result is an effect of using tmerc equations far from where they are valid, but it causes serious problems in MapServer? when trying to establish which images intersect a target map request. In this case we have images from around the world, some in relatively local projections like tmerc. We reproject the map request bounds into the target projection and check for overlap.
What I would like is if we could make the tmerc projection fail (ie return HUGE_VAL) for points so far from the central meridian that they are likely to start folding back on themselves.
