Closed Laudarisd closed 3 years ago
the osm-parser library i used expects the osm file to have the key "version" (and a few other not that relevant keys) inside it. Did you get your map directly from openstreetmaps or did you modify it with another program? Here is an example from an osm-file as it is expected:
`<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.8.3 (1466920 spike-08.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<bounds minlat="51.2540200" minlon="7.1421200" maxlat="51.2551300" maxlon="7.1461000"/>
<node id="692966" visible="true" version="8" changeset="50115597" timestamp="2017-07-07T18:36:13Z" user="bilderhobbit" uid="503347" lat="51.2546014" lon="7.1427466"/>
<node id="692967" visi ......`
as i said, the header and every node have keys that may not be relevant for reconstructing the map, but are expected by the osm-parser. You can just add them with some dummy data.
Sorry for late reply. I had problem in my osm file. It didn't include nodes information.
Thank you for your reply. Have a nice time.
I was trying to convert osm to xodr but encountered following problem. Any suggestion?
Thank you