"wms_extent" does not overrule extent of georeferenced rasters #4611

constantinius opened this Issue Mar 19, 2013 · 2 comments


None yet

2 participants


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.

version: 6.3dev

@Schpidi Schpidi was assigned Mar 26, 2013
Schpidi commented Mar 28, 2013

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.

Schpidi commented Mar 28, 2013

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.

@Schpidi Schpidi closed this Mar 28, 2013
@Schpidi Schpidi added a commit to mapserver/msautotest_DEPRECATED that referenced this issue Mar 28, 2013
@Schpidi Schpidi Removing test for ows_extent (cf. mapserver/mapserver#4611). de12bf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment