Use dilate option for coastline

pull/47/head
Colm McDonald 2021-08-31 18:30:29 +01:00
rodzic b53398055d
commit ab997b48d5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -40,7 +40,7 @@ def get_coast(perimeter = None, point = None, radius = None, tags = {}, perimete
# Boundary defined by circle with radius 'radius' around point
bbox=GeoDataFrame(geometry = [Point(point[::-1])], crs = 4326)
bbox=bbox.to_crs(3174)
bbox=bbox.buffer(radius)
bbox=bbox.buffer(radius+dilate)
bbox=bbox.envelope
# Load the polygons for the coastline from a file
geometries=read_file(file_location, bbox=bbox)