Skip to content
Snippets Groups Projects
Commit 41fb41c6 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: improved plotting and cell size for testing

parent f2bf2720
No related branches found
No related tags found
1 merge request!6Clhp map
No preview for this file type
......@@ -28,8 +28,8 @@ def get_relation(self, body_of_water: str): # NB: implement body_of_water
polygon_counter = 1
num_of_polygons = len(polygons)
print("Dividing map... This may take a few minutes. As reference, "
"a cell size of 0.01 takes approximately 13 minutes")
print("Dividing map... This may take a few minutes. As a reference, "
"a cell size of 0.01 takes approximately 13 minutes to complete.")
# Divide all polygons into sections
for polygon in polygons:
cell_size = 0.04 # NB smaller values require patience
......@@ -51,6 +51,7 @@ def get_relation(self, body_of_water: str): # NB: implement body_of_water
tiles = gpd.GeoDataFrame(geometry=divided_map)
print("Plotting... This may take some time too...")
# NB test plot
fig, ax = plt.subplots()
ax.set_aspect(1.5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment