-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changeset attribute cause issues with JOSM #8
Comments
@james2432 Changing all the id= 1st: https://gist.github.com/tecoholic/1396990 written by @tecoholic 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
The text was updated successfully, but these errors were encountered: