mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
add pmtiles writer implementation
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user