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

The latest tippecanoe 2.51.0 cannot produce vector tiles well #219

Closed
JinIgarashi opened this issue Mar 17, 2024 · 4 comments
Closed

The latest tippecanoe 2.51.0 cannot produce vector tiles well #219

JinIgarashi opened this issue Mar 17, 2024 · 4 comments

Comments

@JinIgarashi
Copy link

JinIgarashi commented Mar 17, 2024

I am not sure this is a bug, but the latest tippecanoe does not produce tiles well.

In my local tippecanoe 2.24.0, the following command can work well.

The below is PMTiles produced by 2.24.0

nanyuki.pmtiles - tippecanoe 2.24.0.zip

image

v2.24.0 logs
tippecanoe     --no-feature-limit     --simplify-only-low-zooms     --detect-shared-borders     --read-parallel     --no-tile-size-limit     --no-tile-compression     --force     --name="NAWASCO Vector Tiles"      --description="Vector tiles for water & sanitation data in Nanyuki Water and Sanitation company, Kenya"     --attribution="©Nanyuki Water and Sanitation Co., Ltd."     -o /tmp/src/data/nanyuki.mbtiles /tmp/src/pipeline.geojson /tmp/src/sewerline.geojson /tmp/src/meter.geojson /tmp/src/kiosks.geojson /tmp/src/borehole.geojson /tmp/src/tank.geojson /tmp/src/booster_pump.geojson /tmp/src/chambers.geojson /tmp/src/manholes.geojson /tmp/src/t_wrks.geojson /tmp/src/blocks.geojson /tmp/src/blocks_annotation.geojson /tmp/src/cadastral.geojson /tmp/src/cadastral_annotation.geojson

60043 features, 3120496 bytes of geometry, 666045 bytes of string pool
  99.9%  14/9882/8193  /0  

But, in the latest 2.51.0, it shows a message like 60043 features, 3355810 bytes of geometry and attributes, 666045 bytes of string pool, 0 bytes of vertices, 0 bytes of nodes while there is no 0 bytes of vertices, 0 bytes of nodes log in v2.24.0.

The below is PMTiles produced by 2.51.0. As you can see, most of features such as pipeline, sewerline are not in tiles.

I think my tippecanoe command might have problems, but I am struggling to find a solution to fix this. I am not sure this problem is there since which version. Do you have any idea to fix the problem?

nanyuki.pmtiles - tippecanoe 2.51.0.zip

image

v2.51.0 logs
tippecanoe     --no-feature-limit     --simplify-only-low-zooms     --detect-shared-borders     --read-parallel     --no-tile-size-limit     --no-tile-compression     --force     --name="NAWASCO Vector Tiles"      --description="Vector tiles for water & sanitation data in Nanyuki Water and Sanitation company, Kenya"     --attribution="©Nanyuki Water and Sanitation Co., Ltd."     -o /tmp/src/data/nanyuki.pmtiles /tmp/src/pipeline.geojson /tmp/src/sewerline.geojson /tmp/src/meter.geojson /tmp/src/kiosks.geojson /tmp/src/borehole.geojson /tmp/src/tank.geojson /tmp/src/booster_pump.geojson /tmp/src/chambers.geojson /tmp/src/manholes.geojson /tmp/src/t_wrks.geojson /tmp/src/blocks.geojson /tmp/src/blocks_annotation.geojson /tmp/src/cadastral.geojson /tmp/src/cadastral_annotation.geojson

60043 features, 3355810 bytes of geometry and attributes, 666045 bytes of string pool, 0 bytes of vertices, 0 bytes of nodes
  99.9%  14/9877/8190  /0  

I attach geojson files here to reproduce.

geojson.zip

@e-n-f
Copy link
Collaborator

e-n-f commented Mar 20, 2024

Thanks for the report! This is a very strange and unexpected regression. I'll look into it and figure out what has gone wrong.

@e-n-f
Copy link
Collaborator

e-n-f commented Mar 20, 2024

Thanks again. The bug appears to have been introduced in version 2.43.0. I'll take a look at that PR and figure out what I did wrong.

@e-n-f
Copy link
Collaborator

e-n-f commented Mar 20, 2024

This will be fixed in #221

@e-n-f
Copy link
Collaborator

e-n-f commented Mar 22, 2024

Thanks! Merged and tagged as 2.52.0.

@e-n-f e-n-f closed this as completed Mar 22, 2024
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