fix: correct NRW live source mappings and EPSG25832 conversion order
This commit is contained in:
parent
05745aae37
commit
a50d51b3b1
2 changed files with 5 additions and 5 deletions
|
|
@ -264,7 +264,7 @@ def import_from_source(source_cfg: dict, config_dir: Path) -> dict:
|
||||||
lat = float(_as_text(lat_raw) or _as_text(defaults.get("lat", "")))
|
lat = float(_as_text(lat_raw) or _as_text(defaults.get("lat", "")))
|
||||||
lon = float(_as_text(lon_raw) or _as_text(defaults.get("lon", "")))
|
lon = float(_as_text(lon_raw) or _as_text(defaults.get("lon", "")))
|
||||||
if coord_crs == "EPSG:25832":
|
if coord_crs == "EPSG:25832":
|
||||||
lat, lon = _utm_epsg25832_to_wgs84(lat, lon)
|
lat, lon = _utm_epsg25832_to_wgs84(lon, lat)
|
||||||
|
|
||||||
start_dt = _as_text(_get_by_path(record, start_key)) or _as_text(defaults.get("start_datetime", ""))
|
start_dt = _as_text(_get_by_path(record, start_key)) or _as_text(defaults.get("start_datetime", ""))
|
||||||
end_dt = _as_text(_get_by_path(record, end_key)) or _as_text(defaults.get("end_datetime", ""))
|
end_dt = _as_text(_get_by_path(record, end_key)) or _as_text(defaults.get("end_datetime", ""))
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
"json_path": "features",
|
"json_path": "features",
|
||||||
"source_name": "koeln_verkehrsbeeintraechtigungen",
|
"source_name": "koeln_verkehrsbeeintraechtigungen",
|
||||||
"field_map": {
|
"field_map": {
|
||||||
"external_id": "attributes.OBJECTID",
|
"external_id": "attributes.objectid",
|
||||||
"lat": "geometry.y",
|
"lat": "geometry.y",
|
||||||
"lon": "geometry.x",
|
"lon": "geometry.x",
|
||||||
"event_type": "attributes.TYP",
|
"event_type": "attributes.typ",
|
||||||
"start_datetime": "attributes.DATUM_VON",
|
"start_datetime": "attributes.datum_von",
|
||||||
"end_datetime": "attributes.DATUM_BIS"
|
"end_datetime": "attributes.datum_bis"
|
||||||
},
|
},
|
||||||
"event_type_map": {
|
"event_type_map": {
|
||||||
"1": "event",
|
"1": "event",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue