-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
test protobuffer import without requiring osmosis/JAVA #1788
Comments
libosmium comes with a tool that is able to convert from osm xml to osm pbf --- but that's not all we're using osmosis for, is it? |
@daniel-j-h I actually think that is the only current usecase. That is the only reference that I found grepping for osmosis.
|
yes only use. does libosmium come with a binary for converting? |
Is this conversion even needed now that the osm data is parsed with libosmium? It should be able to read the xml directly. |
the default for tests is to load xml. but if we want to also test loading pbf files we need a few tests that load pbf files. |
In theory it would be the job of the libosmium test suite to check that pbf is read correctly in terms of content. Consequently, it would be completely sufficient to have a single test that reads a fixed pbf file and makes sure that libosmium is used correctly by OSRM. In practice, it all depends on how much you trust libosmium. |
Since this are integration tests we want to make sure our whole stack is working, so we should probably not just drop the tests. In any case its just like three test cases, we don't rerun all test on 👍 for removing osmosis and replacing with the equivalent |
osmium is build with c++, so we would get rid of java? |
@emiltin note that you have to build osmium_convert explicitely by means of setting Right now, we do not build the examples, but use libosmium as header only drop-in. |
we would then build the osmium tools as part of the osrm build process? |
Correct; without building the tests or other features, just the examples. Then use the |
This provides a script to build the libosmium examples such as osmium_convert (to convert from xml to pbf). I initially tried a CMake ExternalProject setup, but this was more complicated than I initially thought; this is the more elegant solution. The goal is to eventually rip out osmosis, so that we no longer depend on java for the cucumber tests. References: - #1788
This provides a script to build the libosmium examples such as osmium_convert (to convert from xml to pbf). I initially tried a CMake ExternalProject setup, but this was more complicated than I initially thought; this is the more elegant solution. The goal is to eventually rip out osmosis, so that we no longer depend on java for the cucumber tests. References: - #1788
#1877 rips out osmosis / the java dependency. |
testing pbf import currently uses osmosis, which requires a java installation. if you don't have one, you will get a system popup on os x asking if if you want to install java.
osmosis is used for converting xml (.osm) to pbf.
The text was updated successfully, but these errors were encountered: