Skip to content

Disable FSST in MLT encoder and update gis-tools to 2.2.1 - #49

Merged
trasch merged 1 commit into
mainfrom
fix/mlt-fsst-and-gis-tools-2.2.1
Aug 4, 2026
Merged

trasch merged 1 commit into
mainfrom
fix/mlt-fsst-and-gis-tools-2.2.1

Conversation

@trasch

@trasch trasch commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

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 e20ad29 originally 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.

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).
@trasch trasch self-assigned this Aug 4, 2026
@trasch trasch added the bug Something isn't working label Aug 4, 2026
@trasch
trasch merged commit da15e10 into main Aug 4, 2026
1 check passed
@trasch
trasch deleted the fix/mlt-fsst-and-gis-tools-2.2.1 branch August 4, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant