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

Bug fix diameter calculation error #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BerginJay
Copy link
Contributor

Bug description

The craters' diameters might go wrong when project CRS is inconsistent with layer CRS. For example the crater diameter failed to convert to meters when layer CRS is geographic coordinate system while the project CRS is a projected coordinate system.

Current state

Now circle-craters can work correctly when layer CRS / project CRS are both projected or project CRS is projected with geographic layer CRS.

Known issue

When project CRS is geographic and layer CRS is projected, one might get wrong diameter measurement. But this CRS situation should be avoid since one would need projected CRS to preform accurate measurement. And thanks to On-The-Fly Projection, we can get a projected view by only set project CRS to projected, regardless of layer CRS.

Miscellaneous

script cleanup:

  • import order
  • API name update toProj
  • improve accuracy

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.

1 participant