Commit Graph

39 Commits

Author SHA1 Message Date
Brandon Liu
5a636313e9 python convert print output more correct : entry > addressed tile 2022-10-18 20:30:16 +08:00
Brandon Liu
819a0e6f2b python: default to max dir depth 3, don't default compression in writer 2022-10-16 12:33:39 +08:00
Brandon Liu
b1c7cf59a3 implement pmtiles-to-mbtiles and pmtiles-to-dir conversions; don't delete redundant metadata keys (center, minzoom, etc) 2022-10-13 19:23:57 +08:00
Brandon Liu
5e400b0dbd python: string repr for entries 2022-10-13 19:23:57 +08:00
Brandon Liu
eae1d3a11d python writer: fix bug in construction of leaf dir entries 2022-10-13 19:23:57 +08:00
Brandon Liu
b89bf951bb replace python reader with v3 reader 2022-10-13 19:23:57 +08:00
Brandon Liu
0f03dc3312 python: pmtiles-convert from mbtiles writes v3 spec 2022-10-12 00:02:59 +08:00
Brandon Liu
b1cfa7da24 python v3: serialize/deserialize header 2022-10-11 16:58:42 +08:00
Brandon Liu
904031a85e python client: implement v3 directory serialization/deserialization 2022-10-11 15:57:15 +08:00
Brandon Liu
6087d89391 initial implementations of python v3 utility functions 2022-10-11 13:58:08 +08:00
Brandon Liu
8de8a87e06 Merge pull request #55 from bayre/patch-1
Adopt Reader, MmapSource in pmtiles_to_dir
2022-07-19 00:53:14 +08:00
Brandon Liu
de687baf61 python reader: fix leaf level querying 2022-07-18 21:00:46 +08:00
Ben Ayre
4ddda66498 Adopt Reader, MmapSource in pmtiles_to_dir 2022-07-13 08:48:44 +01:00
Brandon Liu
80c0e2b436 Python API changed to do I/O in larger blocks 2022-07-07 21:57:28 +08:00
Brandon Liu
3811ff9b1b js decoder 1.1.0
adds fflate dependency; maplibre decoder can read gzipped tiles [#41]
2022-07-07 12:36:16 +08:00
Brandon Liu
3944d27833 refactor python reader to take a get_bytes function; add reader tests [#38] 2022-04-26 16:15:03 +08:00
fscottfoti
ed40933563 reformat with black 2022-04-09 12:44:54 -07:00
Brandon Liu
cd5ebcccc9 python writer correctly handles sparse pyramids where leaf parent tile missing [#37] 2022-03-20 18:24:08 +08:00
Brandon Liu
df8256f10b python writer: fix logical error when a packed leaf directory overflows [#37] 2022-03-20 18:20:56 +08:00
Brandon Liu
c9b0ddc558 python reader can read v2 archives (non-fixed leaf level) [#36] 2022-03-17 15:50:17 +08:00
Brandon Liu
7fe6325c74 refactor of python writer; separate pyramid building from i/o 2022-02-28 10:59:02 +08:00
Brandon Liu
94e3ef2765 fix writing of sorted leaf directories in python [#34] 2022-02-26 22:18:16 +08:00
Brandon Liu
827560bc74 python library writes spec v2; bump 1.1.0 2022-02-18 11:41:27 +08:00
Brandon Liu
bfa8d178a6 Merge pull request #23 from eddy-geek/smart_base_zoom
writer: Leaf directories: Find best base zoom
2022-02-07 23:38:55 +08:00
Brandon Liu
d6298b698d fix leaf sort 2022-01-30 18:45:40 +08:00
Brandon Liu
1c0211602f directories are always sorted in ascending z,x,y order [#26] 2022-01-30 12:14:22 +08:00
Brandon Liu
d7ece9915b pmtiles-convert --gzip flag explicitly controls tile-level compression (default disabled) [#26] 2022-01-23 13:44:50 +08:00
EdwardO
2501219ef4 Correctly flip back to TMS in pmt_to_mbt. Fixes #21 2021-12-20 10:49:03 +01:00
EdwardO
d8298e4e87 Refactor to allow use as python library 2021-12-20 10:49:03 +01:00
EdwardO
dfe54a3c39 writer: Leaf directories: Find best base zoom
... to avoid extra indirection for as many tiles as we can
2021-12-18 20:19:26 +01:00
Brandon Liu
f439b3bf4c handle case where there are not root tiles, only leaf directories [#13] 2021-05-19 12:56:51 +08:00
Brandon Liu
27e2305fb4 pmtiles-convert does pmtiles to mbtiles 2021-03-02 17:45:11 +08:00
Brandon Liu
9e41c46bcd cleanup leafdir logic 2021-03-01 16:20:12 +08:00
Brandon Liu
9279619cd1 python supports recursive directories 2021-02-18 20:08:01 +08:00
Brandon Liu
f309d81aa2 fix root dir writing, refactor js getZxy 2021-02-18 16:21:30 +08:00
Brandon Liu
ab8f1e889d detect and decompress gzipped tile data 2021-02-18 10:59:39 +08:00
Brandon Liu
67560e9abf add pmtiles writer implementation 2021-02-17 14:23:49 +08:00
Brandon Liu
ba041c3760 version bump 2021-02-17 13:18:33 +08:00
Brandon Liu
154cc139d4 Add python package structure 2021-02-16 19:46:34 +08:00