Repository navigation
Disable FSST in MLT encoder and update gis-tools to 2.2.1 - #49
Merged
Merged
Conversation
FSST string compression was re-enabled in b0efa5f, but the C++ FSST encoder remains binary-incompatible with the Rust/WASM FSST decoder used by maplibre-gl-js. The corruption is content-dependent: tiles whose string corpus triggers a bad dictionary (e.g. country names with UTF-8 characters) silently drop features whose style filters compare those strings. Disable FSST again and add a comment explaining why it must not be re-enabled without verifying against the maplibre-gl-js WASM decoder. Also bump gis-tools from 2.2.0 to 2.2.1, which includes the fix for BoundingBox.expanded(byDistance:) producing inverted boxes at the antimeridian (gis-tools #226).
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.
Changes
Disable FSST in MLT encoder
FSST string compression was re-enabled in
b0efa5f, but the C++ FSST encoder remains binary-incompatible with the Rust/WASM FSST decoder used by maplibre-gl-js.The corruption is content-dependent: tiles whose string corpus triggers a bad FSST dictionary silently drop features whose style filters compare string properties. The mvt-tools Swift decoder reads both fine because it uses the same C++ encoder's dictionary format.
This re-disables FSST (as
e20ad29originally did) with a comment explaining why it must not be re-enabled without verifying round-trip decoding against the maplibre-gl-js WASM decoder across a representative set of tiles. String data is still encoded with shared dictionaries and delta/RLE integer encoding, so tile sizes are barely affected.