Skip to content
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

Add OSM PBF encoder #52

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

larsbeck
Copy link

@larsbeck larsbeck commented Nov 13, 2023

Description

This PR adds a PBF Encoder. It is inspired by OsmSharp's encoder. Most likely this code can be simplified and made more go idiomatic.

The Encoder has a method Encode(obj osm.Object) error which can be used to encode structs of type osm.Object.

Resolves #48

osmpbf/encode.go Show resolved Hide resolved
osmpbf/encode_test.go Outdated Show resolved Hide resolved
@larsbeck larsbeck changed the title Add OSM encoder Add OSM PBF encoder May 6, 2024
@larsbeck larsbeck marked this pull request as ready for review May 6, 2024 09:11
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.

FEATURE REQUEST: Write to osm.pbf
1 participant