mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-08-22 14:13:04 +02:00
Use dilate option for coastline
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user