PROJ icon indicating copy to clipboard operation
PROJ copied to clipboard

Fix unreachable code in projections/isea.

Open direvus opened this issue 4 years ago • 4 comments

The internal helper function isea_hex() had an early unconditional return, which made most of the code in the function totally unreachable.

Based on the comments in the unreachable section, I speculate that the original author meant for this early return to occur for aperture values other than 3 or 4.

In passing, change the function's return type to void, since it was always returning 1 anyway and the return was not used (per #947), and clean up some rogue whitespace.

Fixes #423.

  • [x] Closes #423
  • [x] Fully documented, including updating docs/source/*.rst for new API

direvus avatar Dec 10 '21 04:12 direvus

it would be nice to have test/gie/builtins.gie extended to test the fixed cases

rouault avatar Dec 23 '21 16:12 rouault

it would be nice to have test/gie/builtins.gie extended to test the fixed cases

this point remains to be done

rouault avatar Feb 11 '22 17:02 rouault

it would be nice to have test/gie/builtins.gie extended to test the fixed cases

this point remains to be done

I have added some tests on my branch that should exercise those code paths. I haven't independently confirmed the actual projection values are correct.

direvus avatar Feb 24 '22 23:02 direvus

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '22 17:04 stale[bot]

The PROJ project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last two months and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add terminal output examples if applicable

  • that you have written unit tests where possible In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request. If there is no further activity on this pull request, it will be closed in a week.

github-actions[bot] avatar Jul 01 '23 02:07 github-actions[bot]

While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 2 months. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the PROJ project can do to help push this PR forward please let us know how we can assist.

github-actions[bot] avatar Jul 09 '23 02:07 github-actions[bot]