<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>Just found <a href="https://github.com/OSGeo/gdal/blob/master/swig/python/gdal-utils/osgeo_utils/gdal2tiles.py#L272">https://github.com/OSGeo/gdal/blob/master/swig/python/gdal-utils/osgeo_utils/gdal2tiles.py#L272</a> where it seems to look for all files following the naming scheme "tms_*.json". Therefore I don't know why my custom tms configuration files is not found - any ideas?</p>
<p>My custom tms json file also has an identifier set to '2056_28'.</p>
<p>Here is the error message I get:<br />gdal2tiles.py: error: option -p: invalid choice: '2056_28' (choose from 'mercator', 'geodetic', 'raster', 'LINZAntarticaMapTilegrid', 'APSTILE')</p>
<p>Andreas</p>
<p><br /></p>
<p id="reply-intro">On 2024-01-19 11:36, Andreas Neumann via gdal-dev wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>Hi,</p>
<p>I would like to use gdal2tiles with a custom tms profile file. I prepared the json file attached in this mail and put this json file in the /usr/share/gdal folder, there there are already other such files, e.g. from New Zealand or Antartica.</p>
<p>However, when I try to use this custon tms config, gdal2tiles tells me it can't find this profile. Here is my command I used:</p>
<p>gdal2tiles.py -p 2056_28 -z 16 -w openlayers -t "Swiss Hillshading Grayscale" -r cubic -s EPSG:2056 -a 0.0 -e -n lv_16_switzerland_hillshading_small-scale_swissalti3d-srtm_100m_jpeg.tif tiles</p>
<p>Do I need to register the custom TMS config json file somewhere in addition to copying it to the /usr/share/gdal directory?</p>
<p>Thank you for your help!</p>
<p>Andreas</p>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />gdal-dev mailing list<br /><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br /><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div>
</blockquote>
<p><br /></p>
</body></html>