mapbox / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
2.74k stars 432 forks source link

Precision of between vector tiles and geojson #965

Open zhp7260 opened 1 year ago

zhp7260 commented 1 year ago

I used tippecanoe to generate the vector tiles based on OSM road layer, but there is an offset between vector tiles in mbtiles and geojson displayed in QGIS at 1:50 or larger scale. So my first question is: Is this because of floating point operations?

1:50 image

1:25 image

1:12 image

e-n-f commented 1 year ago

If everything is consistently above and to the left of where it should be, this is probably the rounding-vs-truncation problem that I just fixed in https://github.com/felt/tippecanoe/pull/60.

adlzanchetta commented 1 year ago

If everything is consistently above and to the left of where it should be, this is probably the rounding-vs-truncation problem that I just fixed in felt/tippecanoe#60.

@e-n-f I found this repository (Mapbox's) following some tutorials, but it seems that this one is discontinued and the current active repo of the project is the one in Felt's account. Is this correct?

e-n-f commented 1 year ago

No one has been maintaining the Mapbox Tippecanoe repo for the last few years. I now work at Felt rather than Mapbox and am actively maintaining https://github.com/felt/tippecanoe.