Brandon Liu
df23fa6320
Change python example from Toner to Terrarium tiles on AWS [ #440 ] ( #441 )
2024-09-04 11:46:38 +08:00
Lars Maxfield
579cd7a2a4
Add disk_to_pmtiles: Convert a directory of tiles to pmtiles ( #431 )
...
Add disk_to_pmtiles CLI command and function for converting raster image pyramids to PMTiles.
2024-08-12 17:33:33 +08:00
Brandon Liu
e2d9dd40bd
python 3.3.0 ( #365 )
2024-02-21 12:47:54 +08:00
Jesse Crocker
206be682c7
Remove print statements ( #364 )
2024-02-21 12:33:18 +08:00
Brandon Liu
949510f701
python v3.2.1 ( #360 )
2024-02-10 11:52:11 +08:00
Gabor Simko
ea1657d8fe
fix reader.py reading all the tiles ( #357 )
...
* fix reader.py reading all the tiles
* add unit test
---------
Co-authored-by: Gabor Simko <gsimko3@gmail.com >
2024-02-10 11:40:06 +08:00
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
32666dd9d7
add unit test for dir output [ #221 ] ( #238 )
2023-08-21 16:51:39 +08:00
François BAPTISTE
6a4a403942
fix NameError: name 'data' is not defined in convert.py ( #220 )
2023-07-20 16:32:34 +08:00
Brandon Liu
2be2a3e195
Update README.md
2023-06-23 14:24:37 +08:00
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