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

Show area of interest size #69

Merged
merged 6 commits into from
Nov 16, 2022
Merged

Show area of interest size #69

merged 6 commits into from
Nov 16, 2022

Conversation

Samweli
Copy link
Collaborator

@Samweli Samweli commented Nov 8, 2022

Supersedes #61
Opened this PR based on the discussion from #62 (comment)

Adds text widget in the area of interest widget that shows the current area of interest size in square kilometers.

Includes new tests for checking the function responsible for the size calcuations.

Screenshot
updated_shot_for_aoi

@Samweli Samweli mentioned this pull request Nov 8, 2022
geometry_area, QgsUnitTypes.AreaSquareKilometers
)

return round(geometry_area_sq, 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

For very small areas, this will report 0.0. Not a requirement but it'd be nice if we did "relative" rounding.

Copy link
Contributor

@john-dupuy john-dupuy left a comment

Choose a reason for hiding this comment

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

Tested locally and it's working well for me - thanks @Samweli!

@john-dupuy john-dupuy merged commit d1725ba into master Nov 16, 2022
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