Skip to content

Commit

Permalink
update osm projection
Browse files Browse the repository at this point in the history
  • Loading branch information
smaierhofer committed Dec 28, 2023
1 parent ef479fb commit 38cd777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions crdesigner/common/config/osm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ class OsmConfig(BaseConfig):
"Projection string",
"String describing the projection of the OSM map",
)
PROJ_STRING_TO = Attribute(
gui_config.pseudo_mercator, "Projection string", "String used for the initialization of projection"
)

# Lanelet type each lanelet should have
LANELETTYPE = Attribute("urban", "Lanelet Type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from ordered_set import OrderedSet
from pyproj import CRS, Transformer

from crdesigner.common.config.general_config import general_config
from crdesigner.common.config.osm_config import osm_config
from crdesigner.common.config.osm_config import osm_config as config
from crdesigner.map_conversion.common.geometry import (
Expand Down Expand Up @@ -365,7 +366,7 @@ def parse_file(

# create transformer for projecting lat/lon
crs_from = CRS(osm_config.PROJ_STRING_FROM)
crs_to = CRS(osm_config.PROJ_STRING_TO)
crs_to = CRS(general_config.proj_string_cr)
transformer = Transformer.from_proj(crs_from, crs_to)

road_points = transform_lat_lon(road_ids, road_lats, road_lons, transformer)
Expand Down

0 comments on commit 38cd777

Please sign in to comment.