Skip to content
Snippets Groups Projects
Commit d0ed6e4a authored by Rudolf, Michael's avatar Rudolf, Michael
Browse files

Changed path and output.

parent 8a61fd87
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ Converts a folder with EGMS Data into a GPKG file. ...@@ -4,6 +4,7 @@ Converts a folder with EGMS Data into a GPKG file.
import logging import logging
import os import os
from pathlib import Path
import u4py.io.csvs as u4csv import u4py.io.csvs as u4csv
import u4py.io.files as u4files import u4py.io.files as u4files
...@@ -15,13 +16,15 @@ u4config.start_logger() ...@@ -15,13 +16,15 @@ u4config.start_logger()
def main(): def main():
project = u4projects.get_project( project = u4projects.get_project(
proj_path="/home/rudolf/Documents/umwelt4/ConvertEGMS.u4project", proj_path=Path(
"~/Documents/umwelt4/ConvertEGMS.u4project"
).expanduser(),
required=["psi_path"], required=["psi_path"],
interactive=True, interactive=True,
) )
file_list = u4files.get_file_list(".csv", project["paths"]["psi_path"]) file_list = u4files.get_file_list(".csv", project["paths"]["psi_path"])
gpkg_path = os.path.join(project["paths"]["psi_path"], "EGMS_2015_2021") gpkg_path = os.path.join(project["paths"]["psi_path"], "EGMS_2019_2023")
merged_v, merged_ew = u4csv.egms_csv_list_to_gdf(file_list) merged_v, merged_ew = u4csv.egms_csv_list_to_gdf(file_list)
logging.info("Saving vertical data") logging.info("Saving vertical data")
merged_v.to_file(gpkg_path + "_vertikal.gpkg") merged_v.to_file(gpkg_path + "_vertikal.gpkg")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment