Skip to content
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

[Investigate] Single file sources (geoTIFF, PMTiles, etc.) #19

Closed
larsmaxfield opened this issue Jul 30, 2024 · 4 comments
Closed

[Investigate] Single file sources (geoTIFF, PMTiles, etc.) #19

larsmaxfield opened this issue Jul 30, 2024 · 4 comments

Comments

@larsmaxfield
Copy link
Owner

larsmaxfield commented Jul 30, 2024

Instead of relying on tiled images in a folder of folders of folders, investigate using a single file source like geoTIFF, PMTiles, or another format.

@larsmaxfield larsmaxfield changed the title [Investigate] Support for (cloud-optimized) geoTIFF [Investigate] Single file sources (geoTIFF, PMTiles, etc.) Jul 30, 2024
@larsmaxfield
Copy link
Owner Author

@larsmaxfield
Copy link
Owner Author

protomaps/PMTiles#338 (comment)

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 in z/x/y.ext or a GeoTIF raster and turn it into a pmtiles file.

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 pmtiles convert?

$ mb-util my-tiles-root-directory my_tiles.mbtiles
$ pmtiles convert my_tiles.mbtiles my_tiles.pmtiles

@larsmaxfield
Copy link
Owner Author

larsmaxfield commented Jul 30, 2024

Try creating a PMTiles file from a directory of slippy map tiles z/x/y.ext using the two-part process:

$ mb-util my-tiles-root-directory my_tiles.mbtiles
$ pmtiles convert my_tiles.mbtiles my_tiles.pmtiles
  • Slippy map tiles
  • Install mb-util
  • Install pmtiles
  • Run those two-step commands
  • Test in MapLibre

@larsmaxfield
Copy link
Owner Author

PMTiles is a success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant