gdal icon indicating copy to clipboard operation
gdal copied to clipboard

gdal2tiles: assess and merge features from maptiler version.

Open multiquadric opened this issue 2 years ago • 2 comments

See: https://trac.osgeo.org/gdal/ticket/5624

JPEGs has an option would be great!

Hi,

the maptiler 1.0.beta2 .deb release has a slightly newer version of gdal2tiles.py than either the maptiler svn (on googlecode) or in the gdal/swig/python/scripts/ of that time.

Attached is a diff between r15748 of gdal's copy of the script and the version which shipped with maptiler.

One of the newer features (--srsnodata) was later merged in r16719, perhaps that later commit included a number of other parts of this patch as well? here's the diff between those two revisions:

​https://trac.osgeo.org/gdal/changeset?new=16719%40trunk%2Fgdal%2Fswig%2Fpython%2Fscripts%2Fgdal2tiles.py&old=15748%40trunk%2Fgdal%2Fswig%2Fpython%2Fscripts%2Fgdal2tiles.py

New stuff the attached patch:

new profiles: 'gearth' and 'garmin'

new options:

--tile-format: Image format of generated tiles - default 'png'
--init-dest: Colour used to initialize output, only for 'jpeg' tile format
--tilesize: Size of the tiles - default 256
-d, --kml-depth: How many levels to store before linking, default 1
--kmz: Compress KML files into KMZ format, default for 'gearth' profile
--no-kmz: Do not compress KML files into KMZ format, default for 'mercator', 'geodetic' and 'raster' profiles 

IMO --tile-format seems to be the most important of these. (see also #2052)

Hamish

multiquadric avatar Nov 09 '21 03:11 multiquadric

Got gdal2tiles working with webp.. will consider submitting a PR soon.

ramSeraph avatar May 17 '22 11:05 ramSeraph

Created a PR for webp support - #5745 . Introduced a --tile-driver command line parameter there

ramSeraph avatar May 18 '22 05:05 ramSeraph

Is gdal2tiles to jpeg in the project roadmap? it's a needed feature

asafMasa avatar Oct 06 '22 08:10 asafMasa