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

Can't suppress polygon simplification #88

Closed
bertday opened this issue Mar 29, 2023 · 5 comments
Closed

Can't suppress polygon simplification #88

bertday opened this issue Mar 29, 2023 · 5 comments

Comments

@bertday
Copy link

bertday commented Mar 29, 2023

Hello!

I have hexagons that look like this:

image

which I'm trying to turn into vector tiles. This is the command I'm using:

cat ./summary_hexagons.geojson | tippecanoe \
  --minimum-zoom=6 \
  --maximum-zoom=16 \
  --no-line-simplification \
  --no-tile-compression \
  --no-tiny-polygon-reduction \
  --no-feature-limit \
  --no-tile-size-limit \
  --force \
  --output-to-directory ./summary_hexagons

For some reason they come out looking a bit misshapen:

image

Can anyone think of what I might be doing wrong? I was hoping --no-line-simplification would do the trick, but it seems like some simplification might still be happening. Thank you any advance for any thoughts!

@bdon
Copy link
Contributor

bdon commented Mar 30, 2023

What zoom level is your screenshot at? The MVT design involves snapping to a discrete grid of usually 4096x4096 pixels so this might be the effect of overzooming + precision loss.

@bertday
Copy link
Author

bertday commented Mar 30, 2023

@bdon My screenshot is from around zoom level 10, so within the min and max I passed in to Tippecanoe. I appreciate that background, though. I'll keep thinking on it!

@mtravis
Copy link

mtravis commented Mar 30, 2023

@rbrtmrtn I've come across this issue myself before.
Check out the table in zoom levels section of the readme https://github.com/felt/tippecanoe#zoom-levels

Looking at youe data you may want to make max zoom 18?

@bertday
Copy link
Author

bertday commented Mar 30, 2023

@mtravis thanks for the suggestion to check out zoom levels. I'm re-running Tippe with maxzoom 18.

Something I'm wondering — whatever I set the maxzoom to, as long as I'm viewing the tiles below that zoom level, is there a reason the geometries would look off? Do I need to tinker with something the tile resolution flags? 🤔

Perhaps related? mapbox/tippecanoe#609

@bertday
Copy link
Author

bertday commented Mar 31, 2023

This is what worked for me in the end, for forever posterity 😄

cat ./summary_hexagons.geojson | tippecanoe \
--minimum-zoom=6 \
--maximum-zoom=16 \
--full-detail=16 \
--no-line-simplification \
--no-tile-compression \
--no-tiny-polygon-reduction \
--no-clipping \
--no-duplication \
--no-feature-limit \
--no-tile-size-limit \
--force \
--output-to-directory ./summary_hexagons

I think it was --full-detail which was missing. Thanks to everyone who commented here!

@bertday bertday closed this as completed Mar 31, 2023
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

3 participants