Open tbonfort opened 12 years ago
Author: dmorissette Date: 2003/10/22 - 20:58
Based on the description (I didn't try running the scripts yet), it looks like
this would be a combination of 2 things:
1- side-effect of bug 466 (we don't detect and handle XML exceptions properly)
2- This is a broken server since it doesn't honour MapServer's request for
exceptions INIMAGE.
Once XML exceptions are properly handled in bug 466 this issue may go away but
the problem will remain that this server doesn't behave properly in that situation.
Author: dmorissette Date: 2004/07/14 - 20:03
It would be really nice to fix this one for the 4.4 release.
Here is another testcase. You call it with shp2img, or with a URL like:
http://127.0.0.1/cgi-bin/mapserv_43?map=/home/daniel/proj/msapps/bugs/bug467/bug467_usgs.map&mode=map&layer=usgs+topos
MAP
NAME "TEST"
# The following EXTENT will work:
# EXTENT 272501.795752 4909507.524654 281689.752194 4916526.224710
# The following extent will produce the error:
EXTENT 278935.489900 4909501.040268 279185.206238 4909691.797260
SIZE 400 300
STATUS ON
DEBUG TRUE
PROJECTION
"init=epsg:26919"
END
WEB
IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
LAYER
DEBUG TRUE
PROJECTION
"init=epsg:26919"
END
NAME "usgs topos"
GROUP "usgs topos"
STATUS DEFAULT
TYPE RASTER
CONNECTIONTYPE WMS
CONNECTION
"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DRG&FORMAT=png&styles="
#MAXSCALE 300000
MINSCALE 1000
METADATA
"wms_srs" "EPSG:26919"
"wms_connectiontimeout" "30"
END
END
END
And here's the exact error message it produces:
msDrawMap(): Image handling error. Failed to draw layer named 'usgs topos'.
msDrawRaster(): Image handling error. Unrecognized or unsupported image format
drawEPP(): Image handling error. /tmp/ms_tmp/108982799045080.img.tmp is not an
EPPL file.
Author: dmorissette Date: 2004/10/20 - 01:28
The real fix for this will be to fix bug 466, but in the meantime I will improve
the error message.
Author: dmorissette Date: 2004/10/20 - 01:32
Improved error message for this situation in 4.3. Setting target milestone to
FUTURE to really fix this once bug 466 is fixed.
The testcase from comment #4 above now produces the following error message:
msDrawMap(): WMS connection error. Failed to draw WMS layer named 'usgs topos'.
This most likely happened because the remote WMS server returned an invalid
image, and XML exception or another unexpected result in response to the GetMap
request. Also check and make sure that the layer's connection URL is valid.
msDrawRaster(): Image handling error. Unrecognized or unsupported image format
drawEPP(): Image handling error. /tmp/ms_tmp/109822849569640.img.tmp is not an
EPPL file.
Reporter: dgadoury@dmsolutions.ca Date: 2003/10/22 - 19:55