I am trying to make edits somewhere(the edit includes deletion, modifying, and creation of features).
I need to convert the OSM file to XODR, when I trying this, it failed because of missing some attributes as changeset and timestamp…
**So, I need to know how to save my edits as an ordinary osm file, not as an OSM server file…
**
I use this to conversion https://github.com/JHMeusener/osm2xodr
and this is the error i get
File "d:\osm2xodr\osm2xodr - mo7yasser\main.py", line 11, in <module>
parseAll(osmPfad, bildpfad=topographieKartenPfad, minimumHeight = 163.0, maximumHeight= 192.0, curveRadius=12)
File "d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\osmParsing.py", line 525, in parseAll
topoParameter = convertTopoMap(bildpfad, pfad)
File "d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py", line 122, in convertTopoMap
topoParameter = giveMaxMinLongLat(osmpath)
File "d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py", line 164, in giveMaxMinLongLat
for entity in parse_file(osmpath):
File "C:\Users\mo7ya\AppData\Local\Programs\Python\Python39\lib\site-packages\osmread\__init__.py", line 25, in parse_file
for e in parser.parse_file(filename):
File "C:\Users\mo7ya\AppData\Local\Programs\Python\Python39\lib\site-packages\osmread\parser\__init__.py", line 18, in parse_file
for e in self.parse(fp):
File "C:\Users\mo7ya\AppData\Local\Programs\Python\Python39\lib\site-packages\osmread\parser\xml.py", line 47, in parse
_changeset = int(attrs['changeset'])
File "src\lxml\etree.pyx", line 2479, in lxml.etree._Attrib.__getitem__
KeyError: 'changeset'
It might not be obvious but new objects don’t have a changeset. You may try osmconvert with the --fake-author option.
Save your file as changes.osm and use