-
Notifications
You must be signed in to change notification settings - Fork 1
Add osm pbf encoder #1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only skimmed this, but I trust your translation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work. This is great!
It would be awesome to feed this back into the original library. Sad that it is missing the encoder.
And really annoying that Go needs these import replacements when forking. I dealt with it before too. 🙄 |
Description
This PR adds an
osm.pbf
encoder. go-routingkit already successfully uses it to shrinkosm.pbf
files to only includeways
andnodes
that are relevant for the specificTagMapFilter
.This encoder is essentially a port of
OsmSharp
's encoder. Most likely this code can be simplified and made morego
idiomatic. The user facing API however is small and clean.