Open DenisCarriere opened 8 years ago
@james2432 Changing all the id=-1
doesn't solve it, now all of the features converge into a single node.
I think this issue is with JOSM and not geojson2osm
, this project has been forked many times.
1st: https://gist.github.com/tecoholic/1396990 written by @tecoholic 2nd: https://github.com/aaronlidman/osm-and-geojson written by @aaronlidman
I'm sure they have valid reasons why the XML is in this format.
@DenisCarriere No the id should be incremental... -1 -2 -3 -4 -5 -6.... but the changeset attribute is the problem. it should have instead action='modify'
TL;DR : replace changeset="false" with action='modify'
Changeset should only be set to a positive integer when it has been uploaded to the OpenStreetMap database
@james2432 Oh that makes sense, i'll test it out.
This "patch" works for my particular use case.
geojson2osm(geojson).replace(/changeset="false"/, 'action=\"modifiy\"')
Mentioned by @james2432
A node should have action='modify' and id='-1'
JOSM warning/errors
OSM File created by
geojson2osm