Tooling for converting open Philippine datasets into PMTiles, a single-file vector tile format that can be hosted on static storage and read with HTTP range requests.
| Project | Output | Layers | Source | Hugging Face |
|---|---|---|---|---|
project-noah-hazard-maps-pmtiles |
noah_hazard_maps.pmtiles |
9 | Project NOAH hazard map shapefiles (~575 ZIPs, ~95 GB) | project-noah-hazard-maps |
ph-osm-pmtiles |
ph_osm.pmtiles |
12 | HOT OpenStreetMap exports for the Philippines (12 PMTiles, ~939 MB) | ph-osm-pmtiles |
Flood, landslide, debris flow and storm surge hazard maps.
- Input: shapefiles from the Project NOAH Hazard Maps
- Method: shapefiles are streamed through
ogr2ogrintotippecanoe, one process per layer, then merged withtile-join - Image:
ghcr.io/osgeo/gdalwithtippecanoecompiled from source and thepmtilesCLI - Dataset: bettergovph/project-noah-hazard-maps on Hugging Face
Airports, buildings, roads, health facilities and 8 other OpenStreetMap themes.
- Input: ready-made PMTiles from HOT on HDX
- Method: download, validate, then merge into one file with
tile-join(pmtiles mergecannot combine overlapping archives) - Image:
alpinewith tippecanoe built in a throwaway stage and thepmtilesCLI - Dataset: bettergovph/ph-osm-pmtiles on Hugging Face
Each project is self-contained and follows the same pattern:
Dockerfile— all dependencies, so nothing is installed on the host- a conversion script (
shp_to_pmtiles.sh,osm_to_pmtiles.sh) — run inside the container README.md— layers, attributes, usage examples, how the conversion works
Run any project from its own directory with the project root mounted at /data:
cd <project>
docker build -t <image-name> .
docker run --rm -v $(pwd):/data <image-name> <script>.shThe exact image name and script are in each project's README.
- Docker
- Free disk space for the source data plus the output (see each project's README)
The code in this repository is released under the MIT License.
The converted datasets keep the license of their original source. It is stated in each project's README.