-
Notifications
You must be signed in to change notification settings - Fork 87
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
Issue with Coordinate Precision in Tippecanoe-Generated Vector Tiles #270
Comments
Vector tiles inherently do not have exact precision. You can increase the tile detail slightly with |
@e-n-f Is there is anyway to check values in pdf file after convertion? |
I mostly use |
@e-n-f I checked the PBF data by decoding it using tippecanoe-decode. I noticed that the coordinates are truncated; my data has 8 decimal places, but the generated data only has 6 decimal places. Could you please suggest any fixes for this? My data: {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
0.52058667,
51.08886337
]
},
"properties": {
"coverage": "",
"uprn": "10090058889",
"lat": 51.08886337,
"long": 0.52058667
}
} Generated data: {
"type": "Feature",
"properties": {
"coverage": "",
"uprn": "10090058889",
"lat": 51.08886337,
"long": 0.52058667
},
"geometry": {
"type": "Point",
"coordinates": [
0.520477,
51.088860
]
}
} Please help me to fix this. |
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!
The text was updated successfully, but these errors were encountered: