Add partial support PROJ ellipsoid definitions #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PROJ has rich support for defining an ellipsoid in a proj string. RG only supports the builtins or definitions via
ellps=a,rf
syntax. This PR adds support for reworkinga
andrf
parameters in a proj string toellps=a,rf
. This support is added toparse_proj
as it felt like the cleanest approach.I opted for ignoring ALL other cases as they seemed more difficult to fix. I've added some documentation to
parse_proj
to indicate to users what they can expect.I've also tacked on a small tidyup to proj strings whereby a scaling
k
parameter gets converted tok_0
.closes #61