Commit 67c8a6b8 authored by Eric Duminil's avatar Eric Duminil
Browse files

Move Berlin XML -> GML

parent 7c0f6cab
......@@ -38,3 +38,7 @@ if __name__ == "__main__":
)
download_all_files(zip_files)
# NOTE: Extracted files are called xml. Rename them to gml:
for xml_path in BERLIN.download_folder.glob('*.xml'):
gml_path = xml_path.with_suffix('.gml')
xml_path.rename(gml_path)
......@@ -20,7 +20,6 @@ class ZipFile(CityGMLWithDate):
with zipfile.ZipFile(self.path, "r") as main_zip:
# Flat extract, without directory
for zip_info in main_zip.infolist():
# TODO: Replace XML with GML?
if zip_info.is_dir():
continue
zip_info.filename = Path(zip_info.filename).name
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment