Commit Graph

13 Commits

Author SHA1 Message Date
Daniel J. H
dd76720bef Fixes units in Python writer default bounds (#311)
When there are no user-provided bounds provided in the writer
(as in: min/max_lat/lng_e7 properties) the writer mistakenly
defaults to -180,-90,180,90 for these properties.

e1228f5df1/python/pmtiles/tile.py (L277-L283)

But these properties need to be multiplied by 10000000 as
seen e.g. in this examples and as indicated by the "_e7"

e1228f5df1/python/examples/create_raster_example.py (L29-L32)

Without this fix we were seeing pmtiles with bounds around null
island, because the order of magnitude was wrong.
2023-12-15 15:21:39 +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
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
geospatial-jeff
ba7bc0e24e deserialize_header returns pmtiles version 2023-05-28 09:46:27 -06:00
fscottfoti
681526a370 <= was in the JS, < was in the python 2023-01-28 13:19:48 -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
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
5e400b0dbd python: string repr for entries 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