Skip to content
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

Add support for reading JOSM files #12

Open
sebkur opened this issue Feb 18, 2023 · 1 comment
Open

Add support for reading JOSM files #12

sebkur opened this issue Feb 18, 2023 · 1 comment

Comments

@sebkur
Copy link
Member

sebkur commented Feb 18, 2023

JOSM produces files with a dialect (info here: https://wiki.openstreetmap.org/wiki/JOSM_file_format)

It would be good if the XML parser was able to read those files.

@tordanik
Copy link

Feel free to use this test file I've created for OSM2World to test reading JOSM files. I believe it contains most or all the ways in which JOSM XML is different from standard OSM XML:

  • Deleted, modified and newly created elements (and therefore action attributes and missing metadata)
  • Multiple bounds
  • Bounds with origin
  • Negative ids
  • Root element with upload attribute

Ideally, the result would be that deleted elements would not be part of the result, while other elements would be.

I'm not sure if there's a canonical way of handling multiple bounds – I'm currently calculating the union of the bounds, but that will still incorrect results with some use cases (such as coastline calculations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants