Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ENH: Add single point versions of transform, fwd, inv #1203

Closed
wants to merge 1 commit into from

Conversation

greglucas
Copy link
Contributor

@greglucas greglucas commented Dec 16, 2022

When transforming single points, this can add a significant speed benefit.

  • Tests added
  • Fully documented
  • including history.rst for all changes
  • api/*.rst for new API

@greglucas greglucas force-pushed the transform-point branch 3 times, most recently from 145d9a4 to a381410 Compare December 16, 2022 18:09
When transforming single points, this can add a significant speed benefit.
@codecov
Copy link

codecov bot commented Dec 16, 2022

Codecov Report

Merging #1203 (dcc2af8) into main (e345729) will decrease coverage by 0.08%.
The diff coverage is 92.10%.

@@            Coverage Diff             @@
##             main    #1203      +/-   ##
==========================================
- Coverage   96.25%   96.17%   -0.09%     
==========================================
  Files          20       20              
  Lines        1791     1829      +38     
==========================================
+ Hits         1724     1759      +35     
- Misses         67       70       +3     
Impacted Files Coverage Δ
pyproj/transformer.py 94.19% <86.95%> (-0.77%) ⬇️
pyproj/geod.py 97.61% <100.00%> (+0.23%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@snowman2 snowman2 added this to the 3.5.0 milestone Dec 16, 2022
@overload
def transform_point( # pylint: disable=invalid-name
self,
x: float,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good for theses kwargs to be consistent with transform.

@snowman2
Copy link
Member

See #1204 for cython version of Transformer.transform_point.

@greglucas
Copy link
Contributor Author

Closing in favor of #1204. Will open a separate PR for the Geod point functions.

@greglucas greglucas closed this Dec 18, 2022
@idanmiara
Copy link
Contributor

Closing in favor of #1204. Will open a separate PR for the Geod point functions.

#1206

Just adding the reference here. Thanks for this work @greglucas @snowman2 !

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants