Increase threshold for minimum polygon size

We filter out very small polygons from the original data to remove
glitches. These glitches are caused by trying to subtract the water from
a polygon that includes some land and some water, but using two
different definitions or resolutions of mean high water line.

If we don’t do this then we end up with a bunch of very small polygons
which lie far outside the understood area of a place, causing large
overspill.

We need to increase the threshold for this process because we’re still
seeing this problem around Bristol and Norwich.

This does mean we lose a few very small polygons in places like Shetland
and the Scilly Isles, but not in such a way that we would avoid
broadcasting to them (because they’d still be caught by the
simplification and overspill).
This commit is contained in:
Chris Hill-Scott
2020-09-14 11:32:02 +01:00
parent 5e579ed45c
commit 858d1ee197
2 changed files with 1 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ class Polygons():
# The threshold for removing very small areas from the map. These
# areas are likely glitches in the data where the shoreline hasnt
# been subtracted from the land properly
minimum_area_size_square_metres = 50 ** 2
minimum_area_size_square_metres = 14_000
def __init__(self, polygons):
if not polygons: