Add MLT output format - #393
Open
dannote wants to merge 4 commits into
Open
Conversation
Integrate the C++ MLT encoder from maplibre-tile-spec as a submodule. Tiles are encoded by converting the existing mvt_tile to mlt::Encoder::Layer and calling the encoder library directly. New CLI flags: --output-format=mlt Encode tiles as MLT instead of MVT --pretessellate Pre-triangulate polygons (MLT only) --no-mlt-feature-sort Disable within-tile Hilbert sorting (MLT only) MLT tiles use .mlt extension in directory output and format=mlt in mbtiles metadata. Compression and all existing flags work unchanged.
Detect JSON object strings at MLT output time and convert to STRUCT columns. Nested objects/arrays within are re-stringified. MVT output unchanged.
Collaborator
|
Thanks! Does this also add tippecanoe-decode support or is it encode-only? |
Author
|
Thanks! This is encode-only for now — it adds MLT output from tippecanoe, but not tippecanoe-decode support yet. |
Contributor
|
@dannote I just tested MLT generation with your fork—works really nicely! It cut the file size almost in half 😮 Do you think there’s any chance of bringing MLT support to tile-join as well? |
Author
|
@indus Yes, definitely! I’d like to get the initial MLT support in this PR merged first, and then I can look into adding MLT support to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds MapLibre Tile (MLT) output support to Tippecanoe.
--output-format=mltalongside the default MVT/PBF outputformat=mlt.mltextensionsmaplibre/maplibre-tile-specC++ encoder as a submodule--pretessellate--no-mlt-feature-sortFixes #380.
Tests
make testmake mlt-testgit diff --check upstream/main...HEAD