Skip to content

Conversation

@onlyjsmith
Copy link
Contributor

(Thanks for the great tool!)

Summary

Upgrades DuckDB Go bindings to v0.1.23 (DuckDB 1.4.2) which includes a fix for a bug in ST_AsMVTGeom that caused polygons crossing tile boundaries to render as full-tile rectangles.

Problem

Polygons that crossed tile boundaries were incorrectly rendered as rectangles filling the entire tile
(4608×4608 units including buffer). This caused:

  • Visual artifacts (large teal rectangles covering tiles)
  • Click/selection returning wrong features

Root Cause

DuckDB Spatial's ST_AsMVTGeom was normalizing polygon winding order before clipping to tile boundaries. Since clipping can alter winding order, this produced invalid/inverted polygons. Fixed in duckdb/duckdb-spatial#700.

AI disclosure

I had help from Claude in locating the bug and implementing the fix. I then rebuilt the binary and have confirmed that it solves the issue I was having.

includes a fix for a bug in ST_AsMVTGeom that caused polygons crossing tile boundaries to render as full-tile rectangles
@tobilg tobilg merged commit 0604bca into tobilg:main Dec 7, 2025
@tobilg
Copy link
Owner

tobilg commented Dec 7, 2025

Thanks a lot @onlyjsmith! Merged, and the new v0.1.3 building and soon to be pushed.

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