Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropping polygons based on their size #978

Open
vincentvd1 opened this issue Aug 29, 2023 · 0 comments
Open

Dropping polygons based on their size #978

vincentvd1 opened this issue Aug 29, 2023 · 0 comments

Comments

@vincentvd1
Copy link

I have a polygon layer that should be visible from Z10 to Z13. I am having troubles though letting tippecanoe drop polygons to not create a to crowded map. I can let it drop polygons but tippecanoe often prefers dropping the largest features while I would like it to drop the smallest features at low zoomlevels and slowly make them visible.

I tried to parameters below but that does not give the desired output (see also the example dataset below).

tippecanoe -Z10 -z13 -o output/leisure_tourism_z10.pmtiles output/leisure_tourism_z10.geojson --no-simplification-of-shared-nodes --drop-polygons --drop-rate=1.5 --cluster-distance=7 --no-clipping

Is there a way to keep the largest polygons and slowly show the smaller polygons as you zoom in?

I generate the geojson files by exporting them from Postgressql/postgis. Another approach would be to create a geojson per zoomlevel and let postgis drop some features with a sql selection. Given that this method is less dynamic it is not my preferred way.

Sample dataset:
leisure_tourism_z10.zip

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

No branches or pull requests

1 participant