Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
We were notified of an issue that prevented area plots below -30 degrees latitude. After some digging I found that the Lambert Conformal projection used in the area plotter for areas within (-85, 85) deg latitude does not extend beyond this range. Switching to the Mercator projection allows all plots within this range. While testing I also found that the area boundary is not properly calculated for polar plots outside of this range, especially when the area intersected the north/south pole. To resolve this I opted to re-calculate the bounds and centroid in the plots own CRS to ensure that the plot was centered on the polygon.
Why did you take this approach?
Adopting the Mercator projection allows us to use the majority of the globe for standard plots.
Screenshot(s)
Comparisons of plots before/after changes:
Checks
black .
.Hint To run all python unit tests run the following command from the root repository directory: