-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fallback to 7/3 param transform when gridshift transform fails #19
Comments
Comment by cdestigter on 4 Nov 2008 21:21 UTC |
Comment by rcoup on 5 Jul 2009 10:41 UTC
The 2nd is a problem currently, since the gridshift bails out with a "transient error", so the return code from Changes in the patch:
My main test case ([attachment:proj_grid_test.c]) was transforming:
between:
and:
|
Comment by rcoup on 20 Jul 2009 06:20 UTC |
Attachment added by cdestigter on 4 Nov 2008 21:09 UTC |
Attachment added by cdestigter on 4 Nov 2008 21:20 UTC |
Attachment added by rcoup on 5 Jul 2009 10:26 UTC |
Attachment added by rcoup on 5 Jul 2009 10:43 UTC |
Attachment added by rcoup on 20 Jul 2009 06:21 UTC |
Attachment added by rcoup on 20 Jul 2009 06:22 UTC |
Attachment added by rcoup on 27 Jul 2009 22:37 UTC |
Closing, since attachment links now 404 |
Reported by cdestigter on 4 Nov 2008 21:08 UTC
Posted to proj user list on 16 April 08:
We came across some out-of-grid geometries when transforming from EPSG:27200 (New Zealand Map Grid). The results returned included INFs and NANs, which was hardly useful.
As a solution I wrote a patch for the pj_datum_transform function in Proj. The patch first tries to convert coordinates using the gridshift approach if available, but on failure will fall back to using the appropriate 3- or 7-parameter transform.
I've updated the patch to a universal diff and attached it to this ticket.
Comment from the original post ( hamish_b at yahoo dot com ):
Yes, the distortion grid hugs the coast quite closely in places.
(regardless of file size issues, it's based on trig stations, so that's hardly surprising)
I've experienced this in GRASS when plotting a lat/lon grid over a NZMG location with the 'd.grid -g' or 'ps.map geogrid' modules. I had to switch to the 7 term transform to get it to work. But then at a scale where you're going far offshore switching away from the grid probably doesn't make any difference. (for me it was just ~10-20km west of Fiordland when it failed)
NZMG distortion gets very bad (totally wonky) far away from the main coasts, if your data is from like the Kermadec, Chatham, or Auckland Islands I think you probably should try hard to use something else. (somewhen I made a screenshot of that)
One worry I have with the patch is that it makes the data of uneven quality across the dataset. (but again NZMG/NZGD1949 is pretty much ???? at sea anyway, so maybe who cares?)
regards,
Hamish
Dept Marine Science
University of Otago
Migrated-From: https://trac.osgeo.org/proj/ticket/19
The text was updated successfully, but these errors were encountered: