Skip to content
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

Fix #101 Add convert methods for all the types from geo-types #106

Closed
wants to merge 1 commit into from

Conversation

x4d3
Copy link

@x4d3 x4d3 commented Feb 8, 2022

I though it would be handy/nice to be able to convert all the types from geo-types, from one system of coordinate to the other.

This PR is an attempt at doing that.

Please let me know if it's out of scope, completely wrong, etc..

Fix #101

@frewsxcv
Copy link
Member

frewsxcv commented Feb 9, 2022

@x4d3 Cool! In case you didn't already see: georust/geo#718

@michaelkirk
Copy link
Member

michaelkirk commented Feb 12, 2022

Hi @x4d3! Thanks for the PR.

I think this is a plausibly useful feature, thanks for proposing it.

Funny timing - as @frewsxcv linked, we just added something very similar to the geo crate in georust/geo#718.

Before commenting on any of your specific code, I wanted to strategize on the relationship between all these crates, so we don't end up re-inventing slightly different wheels.

See here: #108

@x4d3
Copy link
Author

x4d3 commented Feb 16, 2022

Closing in favor of #109

@x4d3 x4d3 closed this Feb 16, 2022
bors bot added a commit that referenced this pull request Feb 20, 2022
109: Port transform trait from geo and add a mutable flavor r=frewsxcv a=michaelkirk

Fixes #101, #108

An alternative to #106, but as proposed in #108, I've done so by porting the [Transform trait from geo](georust/geo#718 ) to proj so that we won't need similar-but-different code in two places.

I chose to double down on a trait-based approach since it seemed idiomatic to our other georust code. However, like proposed in #106, I leveraged proj_array in more places.

/cc `@x4d3` 

corresponding PRs:
- georust/geo#730
- frewsxcv/rgis#47

Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the possibility to convert all the types from geo-types
3 participants