NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum


I want to export the UTM coordinates into map.osm instead of lat/long coordinates from Open street map. Is there any way I can do that? I can't find anywhere option to change the lat/long coordinates into UTM coordinates.

Work: I require my road networks from osm file in UTM coordinates. So, I it can be converted into opendrive(.xodr) format later and I can view those map in carmaker simulation in UTM coordinates.

Can anyone please specify any other alternatives, if we can't export UTM coordinates from osm into map.osm file?

asked 31 May '22, 22:22

Nagarjun's gravatar image

accept rate: 0%

There are no tools to transform the coordinates in an OSM file because the OSM XML file format only supports lat/lon coordinates. There isn't any software that would process an OSM file with coordinates in a different coordinate system.

If there is already a conversion program that converts OSM data to the XODR format then it would make sense to modify that program - potentially using the "proj4" library to do the coordinate transformation.

Another potential avenue is using the osm2pgsql software to load the data into a PostGIS database. osm2pgsql can transform OSM data into a number of projections on import (using the -E commandline option). Then you would have to find a way to generate XODR data from the PostGIS tables (or perhaps export the PostGIS tables to Shape Files first with pgsql2shp and take it from there).

permanent link

answered 01 Jun '22, 10:57

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 31 May '22, 22:22

question was seen: 1,304 times

last updated: 01 Jun '22, 10:57

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum