-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
CLI tool to convert raster to pmtiles #338
Comments
It's a good feature request - anything that interacts with GeoTIFF or raster formats will probably depend on GDAL, which is out of scope for go-pmtiles. I've heard the best outputs come from rasterio and so maybe we just need to make a |
A |
It's unlikely this would be part of |
issue transferred to main PMTiles repository |
Isn't it already kinda simple by the use of mb-util which allow to convert tiles file tree to mbtiles, then converting it to pmtiles with $ mb-util my-tiles-root-directory my_tiles.mbtiles
$ pmtiles convert my_tiles.mbtiles my_tiles.pmtiles |
This is the route I went to convert some terrain tiles. It is indeed pretty simple, but:
|
@bdon what would you think of PR which implements a solution like how @neodescis and @mabhub describe above? Specifically, converting raster to |
@JesseCrocker contributed this script: https://gist.github.com/JesseCrocker/4fee23a262cdd454d14e95f2fb25137f I would prefer a CLI that does not need an intermediate |
@bdon thanks for the feedback. The gist wasn't applicable for me because my need is to convert a I created a The Let me know if you're OK with a PR for this. |
I originally stopped development on the python CLI functions because https://github.com/protomaps/go-pmtiles replaces it and should be much faster for large tilesets. |
Ah I see. The Python functions fit nice into my Python-based pipeline. Indeed my use case is for tilesets at most up to |
Well I think it will be useful for the small use cases like that. Can you open the PR? |
Nice. I agree. |
The protomaps format allows for raster tile hierarchies.
We've been working with bundling up raster tiles recently and ended up using the python library from https://github.com/protomaps/PMTiles to do so (see also example in https://github.com/protomaps/PMTiles/blob/e1228f5df1a4ac852e0117dc08c8813089a5c8af/python/examples/create_raster_example.py).
What would have made that workflow simpler is a cli tool like
pmtiles convert
but instead of converting mbtiles into pmtiles it would take e.g. a slippy map tile hierarchy as inz/x/y.ext
or a GeoTIF raster and turn it into a pmtiles file.Should the convert sub-command be extended to support raster, too?
The text was updated successfully, but these errors were encountered: