maplibre / martin

Blazing fast and lightweight PostGIS, MBtiles and PMtiles tile server, tile generation, and mbtiles tooling.
https://martin.maplibre.org
Apache License 2.0
2.28k stars 213 forks source link

Even distributed features #1365

Open karimamkar opened 4 months ago

karimamkar commented 4 months ago

Hello, I have a problem setting up a config for martin and postgis. Example i want to limit the number of features for the tile but the problem is the features that are picked are not evenly distributed across the map area thus the user will not know where fetures are located and will have to zoom in and out. I have tried many approches related to clustering but did not succeed. Any one that faced the same problem and figured out a solution?

CommanderStorm commented 3 months ago

What do you want to achive concretely?

Do you want to use Cartographic generalization on your map? See https://osm2pgsql.org/generalization/ if this is what you want to extract from postgres.