mirror of
https://github.com/marceloprates/prettymaps.git
synced 2025-08-26 15:54:46 +02:00
Fixed typos
This commit is contained in:
@@ -42,7 +42,7 @@ def get_coast(perimeter = None, point = None, radius = None, tags = {}, perimete
|
|||||||
bbox=bbox.to_crs(3174)
|
bbox=bbox.to_crs(3174)
|
||||||
bbox=bbox.buffer(radius)
|
bbox=bbox.buffer(radius)
|
||||||
bbox=bbox.envelope
|
bbox=bbox.envelope
|
||||||
# Load the polygons for the coastline from a file
|
# Load the polygons for the coastline from a file
|
||||||
geometries=read_file(file_location, bbox=bbox)
|
geometries=read_file(file_location, bbox=bbox)
|
||||||
geometries=geometries.to_crs("epsg:4326")
|
geometries=geometries.to_crs("epsg:4326")
|
||||||
perimeter = get_boundary(point, radius, geometries.crs, circle = circle, dilate = dilate)
|
perimeter = get_boundary(point, radius, geometries.crs, circle = circle, dilate = dilate)
|
||||||
@@ -167,9 +167,9 @@ def get_layer(layer, **kwargs):
|
|||||||
# Fetch streets or railway
|
# Fetch streets or railway
|
||||||
if layer in ['streets', 'railway', 'waterway']:
|
if layer in ['streets', 'railway', 'waterway']:
|
||||||
return get_streets(**kwargs, layer = layer)
|
return get_streets(**kwargs, layer = layer)
|
||||||
# Fetch Coastline
|
# Fetch Coastline
|
||||||
elif layer == 'coastline':
|
elif layer == 'coastline':
|
||||||
return get_coast(**kwargs)
|
return get_coast(**kwargs)
|
||||||
# Fetch geometries
|
# Fetch geometries
|
||||||
else:
|
else:
|
||||||
return get_geometries(**kwargs)
|
return get_geometries(**kwargs)
|
||||||
|
Reference in New Issue
Block a user