I made a WMS service with MapServer to display a raster data. When I add it as an ArcGIS or a QGIS layer, there is a shift between the original layer and the WMS layer. This should not be a projection issue because the maps and the layer are all in the same coordinate system.
This shift is not static (if I slightly move the map, it will change in X and Y) and less than one pixel. Even if it is not a problem for many application, I need a very precise location of my pixels. I would therefore like to avoid this random shift. I've tried to remove the shift by setting (or not) the extent and the size of the map/layer in my mapfile, but nothing worked. The problem is exactly the same with ArcGIS and QGIS, therefore I am convinced that it comes from mapServer.
SIZE 120197 70397
EXTENT 50184.875 26720.668 289726.486 167015.441 # EXTENT LB72 in meters, from gdalinfo
LAYER # Raster layer
NAME test STATUS ON TYPE RASTER METADATA "wms_title" "test" END PROJECTION "init=epsg:31370" END EXTENT 50184.875 26720.668 289726.486 167015.441 # EXTENT LB72 in meters, from gdalinfo