Serverless Raster or Imagery Tile Serving using PMTiles
A few months ago, I created a video tutorial about how to serve raster or imagery tiles using Github
using TMS/XYZ Tile Serving protocol. The tiles can be consumed by a web gis app either as a base
map or operational layer. Although the workflow is proven to be working for general cases, the tiles
displaying and loading speed are quite mediocre compared to API-based serving such as WMS,
WMTS, or ArcGIS Services.
Now, there is one protocol called PMTiles that can also provide similar functionality with additional
features and better loading/displaying performance. PMTiles in many ways is similar to Mapbox
MBTiles format (the tiles are packed into a single file), or ArcGIS's TPK Package. However, PMTiles
can be served directly using a common HTTP query (not like MBtiles or TPK which must be deployed into API Services to be able to be consumed by a webgis client). So, if you want to use Github as your host, you won't find an uploading problem because the file can be uploaded directly using GIT or Github Desktop.
In this video, I will demonstrate how to write PMTiles from MBTiles (as far I know, there is no other
way to write PMTiles other than this way), then how to deploy it using Leaflet JS (other Web mapping frameworks should also be able to call PMTiles as long as they support tile layer).
maybe you are asking is there any other way to generate MBTiles from raster/imagery data??, The answer is yes, there are many software that can do it. Here are some of them.
MapTiler - MapTiler is a popular tool for creating MBTiles from raster images. It is available both as a desktop application with a GUI and as a command-line tool. MapTiler can create MBTiles from a wide range of raster image formats, including GeoTIFF, JPEG, and PNG.
GDAL - GDAL (Geospatial Data Abstraction Library) is a powerful open-source software library that can be used to create MBTiles from raster images. GDAL provides command-line tools for converting raster images to MBTiles, such as gdal2tiles.py and gdal_translate.
TileMill - TileMill is an open-source map design studio that can be used to createMBTiles from raster images. It has a GUI that allows users to design maps using various data sources, including raster images. TileMill can also export maps to MBTiles.
QGIS - QGIS is a popular open-source GIS software that can be used to create MBTiles from raster images. QGIS provides a range of tools for working with raster data, including the ability to export maps to MBTiles.
Mapbox Studio - Mapbox Studio is a web-based tool for designing and publishing maps. It can be used to create MBTiles from raster images, as well as to design custom map styles and publish maps online.
Global Mapper
OpenMapTiles - OpenMapTiles is an open-source project that provides tools for generating vector and raster tiles from OpenStreetMap data. It includes a tool called "generate-tiles" that can create MBTiles from raster images.
Maperitive - Maperitive is a free and open-source desktop application for creating custom maps. It can be used to create MBTiles from raster images, as well as to generate vector tiles and export maps in various formats.
Kosmtik - Kosmtik is a free and open-source tool for designing and publishing maps. It can be used to create MBTiles from raster images, as well as to style and export maps in various formats.
TileStache - TileStache is a Python-based server software for creating map tiles from various data sources, including raster images. It can be used to generate MBTiles and serve them as a map tile server.
and many more.
Comments
Post a Comment