busstoptaktik / geodesy

Rust geodesy
Apache License 2.0
66 stars 6 forks source link

Add partial support PROJ ellipsoid definitions #64

Closed Rennzie closed 10 months ago

Rennzie commented 10 months ago

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 reworking a and rf parameters in a proj string to ellps=a,rf. This support is added to parse_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 to k_0.

closes #61