Commit Graph

21 Commits

Author SHA1 Message Date
Anson Chung
6f6c9c8697 Implement MLT (#633)
* Add MLT tile type

* MLT code implementation

* fix build - /app needs to wait for new pmtiles version on npm

* update CHANGELOGs and python, js versions [#596, #633]

---------

Co-authored-by: Michael Barry <msbarry@users.noreply.github.com>
Co-authored-by: Brandon Liu <bdon@users.noreply.github.com>
Co-authored-by: Brandon Liu <bdon@bdon.org>
2026-02-03 17:24:42 -05:00
Taku Fukada
9b69ab4b64 Simplify and optimize Hilbert tile ID <-> XYZ conversion (#527)
* Optimize Hilbert tile ID <-> XYZ conversion

* biome

* tile_id: more improvements

* tile_id(cpp): uint32
2025-02-21 15:37:49 +08:00
Brandon Liu
8f5076297a add missing includes to pmtiles.hpp for fedora (#219) 2023-07-13 13:41:10 +08:00
Brandon Liu
3d1517a73a python and C++ AVIF enums [#116] 2023-06-23 11:07:18 +08:00
Brandon Liu
65eaa0e0ff cpp: add more warning flags to test suite [#194] 2023-06-17 07:31:37 +08:00
Even Rouault
fe7e7db559 cpp/pmtiles.hpp: fix build error with big-endian, and add extra sanitfy check 2023-06-14 23:52:04 +02:00
Even Rouault
6cd1c3a39b pmtiles.hpp: multiple warning and robustness fixes
This fixes a number of warnings found when integrating it in GDAL
builds, which are done with quite pedantic warning levels.

- add explicit casts when shortening variables
- add support for big-endian targets if defining PMTILES_MSB
- add santity checks on reading directories against corrupt/hostile data
- replace a exit() call by an exception
2023-06-09 20:23:05 +02:00
Brandon Liu
7ea69442b3 c++: fix off-by-one error causing out-of-bounds access 2023-05-03 12:58:29 +08:00
James Scott-Brown
2b9bf89c10 Delete unused definition of entry_zxy_cmp 2023-04-04 13:43:24 +01:00
Brandon Liu
58d47196c7 C++: throw exceptions in overflow cases 2022-12-22 21:55:05 +08:00
Brandon Liu
f9cc6a20ac c++: fix faulty roundtrip of z>15 tile IDs 2022-12-22 07:56:09 +08:00
Brandon Liu
52e1e560e7 c++: fix tuple type 2022-12-20 09:17:34 +08:00
Brandon Liu
36adc701a9 c++: add missing header 2022-12-19 23:10:55 +08:00
Brandon Liu
d2a27d03b1 c++: change entries function to TMS order 2022-12-19 22:52:28 +08:00
Brandon Liu
07c769d1e2 c++: add entries_zxy and get_tile functions 2022-12-19 20:39:42 +08:00
Brandon Liu
2e11a7cd2a clang-format on c++ code 2022-11-30 10:56:24 +08:00
Brandon Liu
36a4d31aa8 C++ headers: add sort comparator and deserialize_header 2022-11-29 20:01:28 +08:00
Brandon Liu
e26c5599d6 c++: inline functions to work around linkage with multiple compilation units 2022-11-28 22:04:05 +08:00
Brandon Liu
47bffa32cf c++ v3 utility functions 2022-10-12 16:17:33 +08:00
Brandon Liu
0aae8344fc add basic header-only c++ writer implementation (hardcoded leaf level) 2022-07-30 11:28:10 +08:00
Brandon Liu
18c78d7f99 add empty file for c++ implementation 2022-04-25 13:43:18 +08:00