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

Need advice for generating PMTiles without changing the value of polygons #252

Open
virgilxw opened this issue Aug 6, 2024 · 2 comments

Comments

@virgilxw
Copy link

virgilxw commented Aug 6, 2024

Hi!
I am working on the visualisation on this website:
https://morphometric-explorer-v2.netlify.app/

The website currently takes the "cluster" variable of each polygon and displays it - but while it is able to simplify and gamma out polygons to make everything fit, the cluster value keeps changing between zoom levels.

I am running the following command:

    tippecanoe -o "$output_file" "$file" -zg -pn --minimum-detail=9 --force -aD -P --increase-gamma-as-needed --preserve-input-order --order-by=cluster --no-tiny-polygon-reduction

Would anyone have any advice on how to preserve the cluster values on different zoom level? The raw GeoJSON file is 3gb, so some level of simplification and sparsification is needed.

@e-n-f
Copy link
Collaborator

e-n-f commented Aug 6, 2024

The gamma code is pretty ancient and I had no idea anyone was making serious use of it. I made some recent changes (#247) to improve the consistency of coalesce-densest-as-needed across zoom levels, so make sure you have a recent version of tippecanoe. If you share a sample of your data I can take a look at what specifically is going on in your case.

@virgilxw
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants