CarlaSimpleXODRProjectionWorkaround
Modifies an OSM file so that Carlas Simple Projection in the OSM to XODR Converter creates a correct XODR file for use in roadrunner etc.
Install / Use
/learn @JHMeusener/CarlaSimpleXODRProjectionWorkaroundREADME
This Script is intended to modify a osm file such that the Simple-Projection of Carlas current (Version 0.9.11 and earlier) OSM to XODR Converter is negated and replaced by something like this: "+proj=tmerc +lat_0=middle latidude of streetnodes +lon_0=middle longitude of streetnodes +x_0=0 +y_0=0 +ellps=GRS80 +units=m" (Its the proj4 string) You can then simply drag the xodr-file into roadrunner etc and it matches with the osm files.
Workflow: Run this script on the map.osm. This script creates a map_modified_for_Carla.osm and a replace_XodrHeader_with_this.txt. Run Carlas OSM to XODR Converter with SIMPLE projection (default) on the osm Replace the header in the resulting .xodr with the text in replace_XodrHeader_with_this.txt now the xodr should have a correct Projection and georeference for further use
This Code works well for maps in the Europe. For other regions the projection string in this script may have to be adjusted. Some regions may not work at all.
This code was created as a part of
<p align="center"><img src="https://github.com/JHMeusener/osm2xodr/blob/master/Projekt%20und%20F%C3%B6rderlogos%20EN_28.11.2019.jpg" /></p>Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
