Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u4py
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rudolf, Michael
u4py
Commits
d0ed6e4a
Commit
d0ed6e4a
authored
5 months ago
by
Rudolf, Michael
Browse files
Options
Downloads
Patches
Plain Diff
Changed path and output.
parent
8a61fd87
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
u4py/scripts/data_preparation/Convert_EGMS_CSV_to_gpkg.py
+5
-2
5 additions, 2 deletions
u4py/scripts/data_preparation/Convert_EGMS_CSV_to_gpkg.py
with
5 additions
and
2 deletions
u4py/scripts/data_preparation/Convert_EGMS_CSV_to_gpkg.py
+
5
−
2
View file @
d0ed6e4a
...
@@ -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_201
5
_202
1
"
)
gpkg_path
=
os
.
path
.
join
(
project
[
"
paths
"
][
"
psi_path
"
],
"
EGMS_201
9
_202
3
"
)
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
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment