<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I'm new here, and just started using gdal, so maybe I'm misunderstanding something, but I found that gdalwarp and gdaltransform produces different results.</div><div><br></div><div>The gdaltransform command is :<br>echo 2600000 1196000 768 | gdaltransform -t_srs EPSG:4326 -s_srs EPSG:2056<br><br>and the result is:<br>7.43863317174838 46.9151021335816 817.714334204793<br><br>,but if I'm converting a geotif with the following command:</div><div>gdalwarp -t_srs EPSG:4326 -s_srs EPSG:2056 SWISSALTI3D_10_TIFF_CHLV95_LN02_2600_1196.tif test.tif<br></div><div><br></div><div>the height doesn't change. I'm using swisstopo example data from here:</div><div><div><a href="https://cms.geo.admin.ch/Topo/swissalti3d/swissalti3dgeotifflv95.zip" target="_blank">https://cms.geo.admin.ch/Topo/swissalti3d/swissalti3dgeotifflv95.zip</a><br></div><div><br></div><div>I did the conversion by myself based on swisstopo documentation (link above), and the result of gdaltransform is correct, but gdalwarp is wrong.<br><br>Do I misunderstand something, or did I make a mistake?<br><br>I'm using GDAL 2.4.2, released 2019/06/28</div><br>Thank you in advance for your help.<br><br>Best regards,<br>Zoltan Pillio<br><br>ps.:<br>I also found that setting height reference frame has no effect in these cases:<br>echo 2600000 1196000 768 | gdaltransform -t_srs EPSG:4326 -s_srs EPSG:2056<br>echo 2600000 1196000 768 | gdaltransform -t_srs EPSG:4326 -s_srs EPSG:2056+5728<br>echo 2600000 1196000 768 | gdaltransform -t_srs EPSG:4326 -s_srs EPSG:2056+5729<br><br>and the swisstopo documentation for conversion I used:<br><a href="https://www.swisstopo.admin.ch/content/swisstopo-internet/en/online/calculation-services/_jcr_content/contentPar/tabs/items/documents_publicatio/tabPar/downloadlist/downloadItems/19_1467104393233.download/ch1903wgs84_e.pdf" target="_blank">https://www.swisstopo.admin.ch/content/swisstopo-internet/en/online/calculation-services/_jcr_content/contentPar/tabs/items/documents_publicatio/tabPar/downloadlist/downloadItems/19_1467104393233.download/ch1903wgs84_e.pdf</a><br><br><div></div></div></div></div>