Why my osm file (.xml .pbf, .osm, .osm.pbf) can be displayed in JOSM but not in QGIS?
Hi everyone,
I am trying to generate Isochrones from the [Open Trip Planner package in R][1], I have followed all steps from [Marcus Yung OTP tutorial][2], but the answer when I request to the OTP API is:
*"org.opentripplanner.routing.error.VertexNotFoundException: vertices not found: [from] vertices not found: [from]"*
- I verified that coords were long/lat (as suggest the Young tutorial) and lat/long (as suggest the OTP doc)
I suppouse that above error it's caused because my route .pbf is wrong. In other [tutorial of Marcus Young about this same theme][3] the [.pbf route that he uses][4] can be opened and displayed on QGIS and JOSM, instead my .pbf file can be opened but not displayed on QGIS but yes can JOSM. When I opened my .pbf file on QGIS, how it isn't displayed, the geographical coords have very low values i.e: (-0.31, -1,123).
To get my .pbf file I transformed a shapefile to a xml file with ogr2osm, then I converted this xml file to .pbf with osmconverter. I tried too converting xml file to osm.pbf with JOSM, but the results were as I explicited above.
I need this specific routes because I am trying to get Isochrones with OTP and this API use Shortest Path Tree, so if I add a new route that has shortest paths the results could be wrong.
So, my question is:
-**How can I get a .pbf file that I can to display in QGIS and that could works fine in OTP?**
and
-**Why my osm file (.xml .pbf, .osm, .osm.pbf) can be displayed in JOSM but not in QGIS?**
Thanks in advance!
[1]: https://github.com/marcusyoung/otpr
[2]: https://github.com/marcusyoung/otpr#travel-time-isochrones
[3]: https://github.com/marcusyoung/otp-tutorial
[4]: https://github.com/marcusyoung/otp-tutorial/blob/master/materials/data/greater-manchester-osm.pbf