Skip to content

Comments

Port Transform trait to proj crate.#730

Merged
bors[bot] merged 1 commit intomasterfrom
mkirk/transform-redux
Feb 20, 2022
Merged

Port Transform trait to proj crate.#730
bors[bot] merged 1 commit intomasterfrom
mkirk/transform-redux

Conversation

@michaelkirk
Copy link
Member

@michaelkirk michaelkirk commented Feb 15, 2022

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

Based on the #729, so please review that first:: Done! Merged and rebased.

Depends on proj pr:

@michaelkirk michaelkirk force-pushed the mkirk/transform-redux branch from bef5a81 to 8c4b590 Compare February 17, 2022 18:11
bors bot added a commit to georust/proj 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>
@frewsxcv frewsxcv force-pushed the mkirk/transform-redux branch from 8c4b590 to 7c6bfbd Compare February 20, 2022 15:43
@frewsxcv frewsxcv marked this pull request as ready for review February 20, 2022 15:43
The trait was mostly lifted from geo and ported to proj.

To it, I added:

- a mutable (in place) version
- versions that take a &Proj rather than an Into<Proj> so that we can
  re-use a proj instance and take advantage of proj_array in some
  contexts.
@frewsxcv frewsxcv force-pushed the mkirk/transform-redux branch from 7c6bfbd to faf0a96 Compare February 20, 2022 15:43
@frewsxcv
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 20, 2022

Build succeeded:

@bors bors bot merged commit d7df627 into master Feb 20, 2022
@michaelkirk michaelkirk deleted the mkirk/transform-redux branch February 22, 2022 19:25
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.

2 participants