<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hi all,</div><div dir="ltr" class="gmail_attr">just a short/probably stupid question that I'm loosing way too much time on already :)<br></div><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>is there a way to have gdal2tiles create tiles in a local crs (for example EPSG:2056) and load them into QGIS?</div><div>I'm doing </div><div>gdal2tiles.py --profile=raster --zoom=0-5 --s_srs=EPSG:2056 CH_over_2000_lv95.tif test_tiles<br></div><div><br></div><div>and it looks like the resulting tilemapresource.xml and the openlayers example are correct, but loading them in QGIS using </div><div><br></div><div>file:///home/marco/gis/test_tiles/{z}/{x}/{y}.png</div><div><br></div><div>I get a wrong placement (crs of the tiles is set to 3857, which is "workaroundable") and wrong tiles alignment (looks like 0,0 top left vs 0,0 bottom left).</div><div><br></div><div>I know the TMS "standard" is old but it would still be nice to be able to quickly take a tiff, chop it up in tiles and use it in QGIS. And using --xyz parameter results in correct tiles but in 3857</div><div><br></div><div>Am I doing something stupidly wrong :) ? or is WMTS really the only way to have tiles in local crs?</div><div><br></div><div>Cheers</div><div>Marco</div><div><br></div></div></div><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr">
<font face="verdana, sans-serif"><span style="color:rgb(0,0,0);font-size:10pt">Marco Bernasocchi</span><br>
<span style="color:rgb(0,0,0);font-size:10pt">OPENGIS.ch CEO</span><br>
<span style="color:rgb(0,0,0);font-size:10pt">QGIS.org Chair</span></font><div><font color="#000000" face="verdana, sans-serif"><span style="font-size:13.3333px"><br></span></font></div><div><font color="#000000" face="verdana, sans-serif"><span style="font-size:13.3333px">Find a meeting time on my <a href="https://calendly.com/mbernasocchi/30min" target="_blank">calendar</a>!</span><br></font>
<a href="mailto:marco@opengis.ch" target="_blank">
<span style="color:rgb(0,0,0);font-family:Verdana,sans-serif;font-size:8pt">marco@opengis.ch</span></a><br>
<span style="color:rgb(0,0,0);font-family:Verdana,sans-serif;font-size:8pt"><a href="tel:+41794672470" target="_blank">+41 (0)79 467 24 70</a></span><br>
<div><br><a href="https://opengis.ch" target="_blank"><img src="https://docs.google.com/uc?export=download&id=1wpBvdvkmIhlFVQ6ByRfXB_mgXMyNoRUY&revid=0B2tzibR690PxK3hqOXZFUnZ2ZVRyVk44UWRVa1RFUzV1eWdBPQ" width="420" height="131"></a><br></div></div></div></div></div>
</div><br clear="all"><div><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><br></div></div></div></div></div>