Commit Graph

95 Commits

Author SHA1 Message Date
Brandon Liu
b7ea7e4d6c python v3.2.0 2023-06-23 14:14:37 +08:00
Brandon Liu
8ebcbf53c3 python: use NONE instead of UNKNOWN for compression when converting from MBTiles [#139] 2023-06-23 14:14:03 +08:00
Brandon Liu
d6399365a1 Merge pull request #193 from rouault/python_convert_gzip_tile_compression
Python: mbtiles_to_pmtiles(): set tile_compression = gzip when converting from MVT MBTiles
2023-06-23 13:47:02 +08:00
Brandon Liu
651e3ce5f4 Merge pull request #206 from protomaps/python-writer-improvements
python writer improvements
2023-06-23 11:39:51 +08:00
Brandon Liu
ce4c930439 Merge pull request #205 from protomaps/avif
python and C++ AVIF enums [#116]
2023-06-23 11:39:39 +08:00
Brandon Liu
1940b4eff6 python writer improvements
* flesh out roundtrip test case
* detect unordered tile writes and set clustered flag appropriately [#115]
2023-06-23 11:18:07 +08:00
Brandon Liu
3d1517a73a python and C++ AVIF enums [#116] 2023-06-23 11:07:18 +08:00
Brandon Liu
c6dbd0e4fd python pmtiles-to-mbtiles: lift vector_layers and tilestats into json metadata key [#120] 2023-06-22 15:34:38 +08:00
Even Rouault
8f9feca6e9 Python: mbtiles_to_pmtiles(): set tile_compression = gzip when converting from MVT MBTiles 2023-06-09 19:36:02 +02:00
Even Rouault
021267c67b Python: mbtiles_to_pmtiles(): patch maxzoom metadata when using maxzoom option 2023-06-09 19:30:21 +02:00
Brandon Liu
fec0d1136c Merge pull request #185 from geospatial-jeff/179-header-dry
reuse `Reader.header`
2023-05-29 17:04:19 +08:00
Brandon Liu
2613ef1047 Merge pull request #186 from geospatial-jeff/180-header-include-version
deserialize_header returns pmtiles version
2023-05-29 11:22:26 +08:00
geospatial-jeff
ba7bc0e24e deserialize_header returns pmtiles version 2023-05-28 09:46:27 -06:00
geospatial-jeff
fc27e525cd reuse Reader.header 2023-05-28 09:43:16 -06:00
geospatial-jeff
c9e0c9d019 open mmap with ACCESS_READ 2023-05-28 09:41:08 -06:00
Brandon Liu
f15fa2f6ce python version 3.1.1 2023-04-16 13:41:08 +02:00
nokonoko1203
9144d00a86 Add processing before inserting into the MBTiles metadata table. 2023-02-15 17:00:22 +09:00
Brandon Liu
25382d2605 Merge pull request #117 from mapcraftlabs/fix/find-tile-bug
Fix bug in find_tiles in the python V3 code
2023-01-30 03:42:19 +08:00
Brandon Liu
61a5076dc5 add edge case find_tile test [#117] 2023-01-30 03:41:13 +08:00
fscottfoti
681526a370 <= was in the JS, < was in the python 2023-01-28 13:19:48 -08:00
Brandon Liu
a6ef074308 python 3.1.0 2022-12-23 00:16:41 +08:00
Brandon Liu
78cde0d51f python: raise errors in overflow and invalid tile ID cases 2022-12-22 21:56:23 +08:00
Brandon Liu
ca39bbc0e7 python 3.0.1 2022-12-14 21:52:53 +08:00
Brandon Liu
cd1374cc33 python: fix magic number in writer, assert current spec version and magic number in reader 2022-11-01 17:24:29 +08:00
Brandon Liu
c38b9dfe31 python version 3.0.0 [#80] 2022-10-19 23:14:43 +08:00
Brandon Liu
69de812839 Show upgrade notice in python pmtiles-convert 2022-10-19 23:11:56 +08:00
Brandon Liu
5a636313e9 python convert print output more correct : entry > addressed tile 2022-10-18 20:30:16 +08:00
Brandon Liu
8c57c9d5f4 fix python tests 2022-10-17 21:19:40 +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
991cdb302d add script to generate sample raster archive. 2022-10-16 12:33:05 +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
43e46371c1 python: deprecate pmtiles-serve 2022-10-12 00:02:17 +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
f1efba0a6f python library: 2.1.0 2022-07-21 20:15:10 +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
d3dbce049c python version 2.0.0 2022-07-07 21:57:47 +08: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
Matt Riggott
e38dab965a Improve pmtiles-serve CLI description 2022-06-23 16:58:03 +00: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
Brandon Liu
adb6f896a3 pmtiles-show detects out-of-order directories 2022-04-25 14:27:48 +08:00
fscottfoti
ba6a620709 reformat with black 2022-04-09 14:07:19 -07:00