add pmtiles writer implementation

This commit is contained in:
Brandon Liu
2021-02-17 14:23:49 +08:00
parent cb193d7f80
commit 67560e9abf
4 changed files with 136 additions and 5 deletions

View File

@@ -4,11 +4,11 @@ from contextlib import contextmanager
@contextmanager
def read(fname):
f = Reader(fname)
r = Reader(fname)
try:
yield f
yield r
finally:
f.close()
r.close()
class Reader:
def __init__(self,fname):