Repository navigation
Conversation
|
I'm reluctant to have code around that produces information which is then not used. To be honest, if I came across that code, I would think "unused code" and remove it again. I would even think it might confuse users because it looks like it plays some role somewhere, which it doesn't. Now I see what you meant by "use it as a library" -- good point, though I'm not sure we support e.g. extending |
|
Just a note: you could also use Osmosis or Osmconvert to cut the pbf file, which is probably easier than doing it in GraphHopper. For example here is the Osmconvert wiki page explaining how to do this: https://wiki.openstreetmap.org/wiki/Osmconvert#Keeping_Cross-Border_Ways_Complete |
|
It was indeed a feature at some point where the import was very memory intense and I did not know the existing tools ... unfortunately I did not fully remove the code it seems. For now I would indeed prefer to have the code removed as there seems to be no one with a need for it as it could be easily done externally. |
The OSMReader is now able to use the OSM BBox Header.
I reimplemented and updated the old version that was already implemented but put in comments.
graphhopper/reader-osm/src/main/java/com/graphhopper/reader/osm/pbf/PbfBlobDecoder.java
Lines 104 to 112 in c0aaffa
This solvels #2133