MCPcopy
hub / github.com/protomaps/PMTiles / create_raster_example.py

File create_raster_example.py

python/pmtiles/examples/create_raster_example.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# Generates a raster tile archive for conformance testing.
2
3from urllib.request import Request, urlopen
4from pmtiles.tile import zxy_to_tileid, tileid_to_zxy, TileType, Compression

Callers

nothing calls this directly

Calls 5

WriterClass · 0.90
zxy_to_tileidFunction · 0.90
tileid_to_zxyFunction · 0.90
write_tileMethod · 0.80
finalizeMethod · 0.80

Tested by

no test coverage detected