-
Notifications
You must be signed in to change notification settings - Fork 49
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
Introduction of a projection parameter for convert.py functions and ISG grid/geo conversion capability #138
Conversation
- def psfandgridconv() - def geo2grid() - def grid2geo() replace all references to 'proj' with function parameter 'prj' in the above functions. add exception if ISG selected as projection without ANS as ellipsoid. add to 'Invalid Zone' exceptions to include ISG zones. add zone and CM calculations for ISG to def geo2grid add CM calculations for ISG to def grid2geo
… and chosen ellipsoid, instead of raising an exception add zone 572 (Lord Howe Island) to the allowable zones for ISG
add tests to def test_geo2grid() and def test_grid2geo() to test: - ValueError raised for incorrect ISG zone - UserWarning raised for prj/ellipsoid combination for ISG that isn't recommended
Introduction of integrated projection handling and ISG grid/geo conversion capability
More information on the Integrated Survey Grid projection and its historical implementation in NSW can be found at the NSW Spatial Services Map Projections page and in the ISG Technical Manual |
Thanks @jonathonpsmith and @nicgowans, this looks really useful. I have just run the checks and all seems to be in order. If I don't get to this this afternoon, I will on Monday. I will push a new version to PyPI, too |
Thanks Craig, sounds great. Glad I could be useful! |
Hi @jonathonpsmith and @nicgowans, this looks really great! Happy that you've taken the projection concept to the next level. A couple of comments:
|
Hey @BatchelorJ, yep too easy. I don't believe the projection parameter addition would affect any other functions, as it's defined with 'utm' as the default, which preserves the existing functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonathonpsmith these changes look all in order. My only suggestion is to reduce the number of tests. If there is a good reason for having so many, I am happy to leave them in.
@BatchelorJ, I agree with @jonathonpsmith that these changes should not break anything as prj is an optional argument that has a default value (utm) defined. To be safe, though, after these changes have been pushed through to PyPI, we can update the version of Geodesy on the dev branch and make sure everything is working correctly. |
@jonathonpsmith @nicgowans @BatchelorJ - GeodePy v0.0.28 is now up on PyPI |
Changes to various functions in convert.py to allow conversions by passing in an instance of a Projection object as a parameter.
Various changes to allow easy conversions between AGD66 and the ISG projection for NSW users.