[gdal-dev] gdal2tiles and EPSG:27700

Even Rouault even.rouault at spatialys.com
Mon Nov 15 04:54:33 PST 2021


Javier,
> However using "-ct", swaps the output:
> $ gdalwarp -ct '+proj=pipeline +step +proj=axisswap +order=2,1 +step 
> +inv +proj=tmerc +lat_0=44 +lon_0=144.25 +k=0.9999 +x_0=0 +y_0=0 
> +ellps=GRS80 +step +proj=webmerc +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 
> +ellps=WGS84' input.tif pipeline.tif
You should add -t_srs EPSG:3857 in the above so that gdalwarp knows that 
the output SRS is != input SRS, and in particular so that it knows it 
axis order. The pipeline specified by -ct will be used even if -s_srs 
and/or -t_srs are specify.  And then you can remove the below gdal_edit
> $ gdal_edit.py -a_srs EPSG:3857 pipeline.tif

Even


-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/16fc7521/attachment-0001.html>


More information about the gdal-dev mailing list