<div dir="ltr">I am trying to reproject a netCDF file which is in Lat Lon (EPSG:4326) projection to EPSG:3857 (Google mercator) (on GDAL 3.4.3, released 2022/04/22).<div><div>If I reproject to a tif file, it is reprojected correctly. If I reproject to a nc file it reproject incorrectly/different location that tif file. I am giving the commands I ran below.</div><div>Correctness is determined by viewing them in QGIS: (All tif files show up at exactly same location as   <a href="http://a_stamped_latlon.nc">a_stamped_latlon.nc</a>. <a href="http://agoog.nc">agoog.nc</a> show up at a different location ).</div><div><br></div><div>I will be happy to post the sample files [The only way I know to send files to open a bug, but very likely its some details I don't know about different formats].: <a href="http://a.nc">a.nc</a> is only 42KB.</div><div><br></div><div>Here is how to reproduce it.</div><div><br></div><div> gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -co COMPRESS=DEFLATE -r cubic <a href="http://a.nc">a.nc</a> <a href="http://agoog.nc">agoog.nc</a><br></div><div>gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -co COMPRESS=DEFLATE -r cubic -co "GEOTIFF_KEYS_FLAVOR=STANDARD" agoog_std.tif<br></div><div>gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -co COMPRESS=DEFLATE -r cubic -co "GEOTIFF_KEYS_FLAVOR=STANDARD" <a href="http://a.nc">a.nc</a>  agoog_std.tif<br></div><div><br></div><div>gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -co COMPRESS=DEFLATE -r cubic -co "GEOTIFF_KEYS_FLAVOR=ESRI_PE" <a href="http://a.nc">a.nc</a>  agoog_esri.tif<br></div><div>gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -co COMPRESS=DEFLATE -r cubic -co "GEOTIFF_KEYS_FLAVOR=STANDARD" <a href="http://a.nc">a.nc</a>  agoog_std.tif<br></div><div>gdal_translate -a_srs EPSG:4326 <a href="http://a.nc">a.nc</a> <a href="http://a_stamped_latlon.nc">a_stamped_latlon.nc</a><br></div><div><br></div><div><br>GDAL 3.4.3, released 2022/04/22<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>