Convert .webp tiles into .pmtiles #507
Unanswered
answerquest
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Z/X/Y raster tile folder structure, with the individual tiles being .webp files. They're a lot smaller than png's at same quality.
I need to convert this tiles folder into a .pmtiles file.
I'm not able to find any way to do this. The CLI convert command only seems to work with .mbtiles . Mbtiles doesn't support .webp. Please suggest a solution.
Edit: Found my way to here: #338 , found that there is a
disk_to_pmtiles()
method in the pmtiles python package (which is different from the Go-based CLI - so I'll switch to doing this in python, no worries), but this method errors out if there's nometadata.json
file in the tiles folder. I don't have this. These tiles were created using gdal2tiles and have atilemapresource.xml
file tracking the bounds etc. So if I can get a sample format of metadata.json , for a raster tileset, I can try out this method.Beta Was this translation helpful? Give feedback.
All reactions