When using geo-referenced raster images (such as GeoTIFFs with projection and GeoTransform correctly set) the extent cannot be overwritten by the metadata entry "ows|wms_extent".
When using a not geo-referenced image (like a simple PNG) the extent is correctly overwritten.
Removing the "extent" metadata lookup in msGetGDALGeoTransform() (cf. #…
I've removed the confusing "extent" metadata lookup in msGetGDALGeoTransform(). Please us the layer->extent keyword instead.
msGetGDALGeoTransform() first looks for a georeference provided by GDAL first via a world file or in the file directly and second provided using the layer->extent keyword.
After some discussion here at the code sprint we came to the conclusion to not override the georefernce with information from layer->extent.
You could use a VRT or world file to overwrite the georeference though.
Adding ows_extent to migration guide (cf. mapserver/mapserver#4611).
Removing test for ows_extent (cf. mapserver/mapserver#4611).