Skip to content

Instantly share code, notes, and snippets.

View JesseCrocker's full-sized avatar

Jesse Crocker JesseCrocker

View GitHub Profile
@JesseCrocker
JesseCrocker / extract-pmtiles.py
Last active March 28, 2024 21:22
Extract tiles in a PMTiles file to a directory in z/x/y.ext format. Chat GPT wrote this for me.
#!/usr/bin/env python3
import argparse
import os
from pmtiles.reader import all_tiles
from pmtiles.reader import MmapSource
from pmtiles.reader import Reader
from pmtiles.tile import TileType
from tqdm import tqdm