I am trying to use the SRTM .hgt file to obtain the height of a location. My issue is that I wish to reproject the SRTM file from WGS84 to Mercator but the height returned is not consistent after reprojection of the height file. From QGIS I selected a point where I believed that will cause such an issue.
The band value is different due to the fact that the coordinate reference system in QGIS can only read either WGS84 or Mercator at any point of time. This image is to ensure the conversion of WGS84 coordinate to Mercator coordinate is correct when i am trying to retrieve the band value(height).
This image displays the issue I have been facing for quite sometime, as we can see that the coordinate have been converted to Mercator correctly, but the band value (height) returned is different from the WGS84, Mercator and Mercator with bilinear resampling.
What is the reason to cause the issue of different height value on different projection?
Command Used in Conversion:
gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 N45E005.hgt MN45E005.tif
gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 –r bilinear N45E005.hgt MBN45E005.tif
Downloadable Files to replicate test:
SRTM3 Files with created outputs