mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
Merge pull request #121 from nokonoko1203/main
Problems when converting PMTiles to MBTiles in the Python interface
This commit is contained in:
@@ -126,6 +126,8 @@ def pmtiles_to_mbtiles(input, output):
|
||||
metadata["format"] = "pbf"
|
||||
|
||||
for k, v in metadata.items():
|
||||
if not isinstance(v, str):
|
||||
v = json.dumps(v, ensure_ascii=False)
|
||||
cursor.execute("INSERT INTO metadata VALUES(?,?)", (k, v))
|
||||
|
||||
for zxy, tile_data in all_tiles(source):
|
||||
|
||||
Reference in New Issue
Block a user