Skip to content

Point geometries getting returned over Polygons at low zoom levels in the tiles #974

Answered by nyurik
jan-zajac-dt asked this question in Q&A
Discussion options

You must be logged in to vote

The ST_AsMVTGeom drops any polygons that are too small - this is by design. The whole idea of a tile is that if you zoom out, you should get only the things that are big enough to be seen to keep the tiles small. As you zoom in, as long as the polygon is large enough, it will be included (bigger than 1 "pixel" - where a pixel is a number of integers in one tile -- this is what extent is).

Pixels on the other hand have no such filtering mechanism. Pixel by definition has no size. So Postgres includes all of them, and it is up to you to filter pixels based on some other criteria, for example if the pixel is a city, you may want to only include cities with large population when viewing low z…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jan-zajac-dt
Comment options

Answer selected by jan-zajac-dt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #973 on October 27, 2023 09:54.