-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
geometry_area, QgsUnitTypes.AreaSquareKilometers | ||
) | ||
|
||
return round(geometry_area_sq, 2) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
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