Open agiratech-mani opened 12 hours ago
Vector tiles inherently do not have exact precision. You can increase the tile detail slightly with -d13 -D13
, but Mapbox GL will not take advantage of tile detail higher than 13. If you want to preserve exact values, you will have to store them as properties rather than as geometry.
@e-n-f Is there is anyway to check values in pdf file after convertion?
I mostly use tippecanoe-decode
to turn the pbf or mbtiles files into JSON so I can read them.
I am using the following command in Tippecanoe to generate vector tiles, but the latitude and longitude coordinates in the output are slightly different from the original GeoJSON data. I am using Mapbox’s
map.queryRenderedFeatures({ layers: ['households'] })
to retrieve the data, but I would like to get the original coordinates and properties from the GeoJSON without precision loss.Tippecanoe Command:
Input GeoJSON:
Output from Mapbox
queryRenderedFeatures
:As you can see, the coordinates have slightly changed, and I need the exact original coordinates from the GeoJSON to be preserved in the vector tiles. Could you help me understand how to achieve this, or suggest a way to get the original GeoJSON coordinates using
queryRenderedFeatures
?Thank you!