Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CircularGreenSimCity
CircularGreenSimCity
Commits
d37cd341
Commit
d37cd341
authored
Nov 20, 2024
by
Eric Duminil
Browse files
Bugfix: removing hard coded path
parent
88750074
Changes
1
Hide whitespace changes
Inline
Side-by-side
python_scripts/add_trees_to_open_street_map/export_OSM_roads_to_csv.py
View file @
d37cd341
...
...
@@ -4,12 +4,16 @@ import pandas as pd
from
pyproj
import
Transformer
from
shapely
import
LineString
"""
Parses cache files created by add_trees.py and exports the information to a csv file.
"""
EPSG_ID
=
25832
to_local
=
Transformer
.
from_crs
(
"EPSG:4326"
,
f
"EPSG:
{
EPSG_ID
}
"
,
always_xy
=
True
)
def
load_cache
(
cache_path
):
with
open
(
Path
(
'cache'
)
/
'49_802698__49_804055__9_942167__9_945563.pickle'
,
'rb'
)
as
f
:
with
open
(
cache_path
,
'rb'
)
as
f
:
return
pickle
.
load
(
f
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment