You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like tilemaker supports points but only points and not multipoints.
Storing points in vector tiles is highly inefficient due to the heavy vector tile message encoding that's needed to store two numbers for a point. I found a historic ticket on this going into more details: mapbox/vector-tile-spec#35
It would be great if tilemaker could write out MultiPoints where possible to
make tiles smaller where many points are used, and
to improve decoding and rendering efficiency in clients such as maplibre
For MultiPoints the vector tile geometry type is Point with multiple MoveTo commands.
Good call. We already sort features by attribute so the trick here will be for the point-writing code (as you've identified above) to look ahead in the same way that the polygon and linestring writers just below already do, checking for .compatible and grouping if so.
daniel-j-h
added a commit
to daniel-j-h/tilemaker
that referenced
this issue
May 25, 2024
It looks like tilemaker supports points but only points and not multipoints.
Storing points in vector tiles is highly inefficient due to the heavy vector tile message encoding that's needed to store two numbers for a point. I found a historic ticket on this going into more details: mapbox/vector-tile-spec#35
It would be great if tilemaker could write out MultiPoints where possible to
For MultiPoints the vector tile geometry type is Point with multiple
MoveTo
commands.Vector tile spec on MultiPoints
The vector tile decoding library used e.g. in Maplibre
MultiPoint read and write support in vtzero
MultiPoint writing usage example in vtzero
Tilemaker writing out a point
tilemaker/src/tile_worker.cpp
Lines 278 to 286 in 9e6f7d5
The text was updated successfully, but these errors were encountered: