Skip to content

Commit

Permalink
Update script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaButters authored Jul 22, 2024
1 parent f53fea9 commit b2e6f4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@

# If yes, unzip the file (if the user has formatted the data correctly, this should reveal a .gpkg)
if len(building_files_zip) != 0:
print('zip file found')
with ZipFile(building_files_zip[0],'r') as zip:
zip.extractall(vector_path)
for i in range (0,len(building_files_zip)):
print('zip file found')
with ZipFile(building_files_zip[i],'r') as zip:
zip.extractall(vector_path)

# Identify geopackages containing the polygons of the buildings
building_files = glob(vector_path + "/*.gpkg", recursive = True)
Expand Down

0 comments on commit b2e6f4c

Please sign in to comment.