-
Notifications
You must be signed in to change notification settings - Fork 120
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
Merge OSM parsers #468
Comments
Yes, I think the XML parser should be removed, see Planet.osm:
The PBF parsing is done using osmosis and that does work nicely for me, I found a problem with extensions but with that patched I was able to generate all .rd5 file for a planet.pbf file. |
Hi, did anyone by chance test the routing data creation after PR #555 was merged? In my case the routing data files are created and routing is possible with them but elevation data seems to be no longer be merged into the rd5 files. This is the case for elevation data in .bef files as well as in SRTM ASCII files. I wonder if there's something wrong in my setup or if the problem is elsewhere. I'd appreciate it if anyone can find 5 minutes to test this 🙏 |
@mjaschen |
Ah, I see, thanks for updating me on this. Will follow the PR/discussion :-) |
It was caused by #548 and I've added a PR (#557) which also includes the fix from @afischerdev and uses elevation data in tests which should keep us from breaking this stuff again ;) |
@zod Thanks :-) |
Currently BRouter contains two parsers for OSM data
According to the README of PBF parser the XML Parser is just for testing and I found some issues. It doesn't use a XML parser library and therefore rejects some files which are valid XML (e.g. it doesn't parser JOSM exports correctly because of different quotes).
It seems like the PBF parser should be used but it's not integrated into our build because of the osmosis dependency. This causes more work for users. @mjaschen provides a nice Dockerfile which handles building BRouter with PBF parser.
We use gradle / maven to get our dependencies and osmosis is available via maven central.
Perhaps we should just remove the XML parser and add osmosis as a dependency for map-creator.
The text was updated successfully, but these errors were encountered: