Skip to content

Conversation

larsbeck
Copy link

@larsbeck larsbeck commented Sep 2, 2023

Description

This PR adds an osm.pbf encoder. go-routingkit already successfully uses it to shrink osm.pbf files to only include ways and nodes that are relevant for the specific TagMapFilter.

This encoder is essentially a port of OsmSharp's encoder. Most likely this code can be simplified and made more go idiomatic. The user facing API however is small and clean.

Copy link
Member

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. ☺️

Copy link
Member

@merschformann merschformann left a 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.

@merschformann
Copy link
Member

And really annoying that Go needs these import replacements when forking. I dealt with it before too. 🙄

@larsbeck larsbeck merged commit e980ace into master Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants