No, that doesn't work. It's an OpenLayers application, so the WMS request automatically computes an extent in excess of the screen. The second solution is really a bit of a kludge, don't you think so? :-)

I use another kludge: handle the complete WMS request via PHP Mapscript: return a an XML file for a GetCapabilities request, and an image for everything else (http://mapserver.org/ogc/mapscript.html). This will not cover the complete WMS protocol, but works fine for simple map requests, both in OpenLayers, ArcGIS, MapInfo and QGis. And it gives me at least complete control over error handling, with GD-produced error images at the right position. It's the only way I am aware of to produce WMS output that can be debugged easily.

Jan

On 8-4-2011 16:34, Lime, Steve D (DNR) wrote:
Or limit the size of the WMS request to the viewport size (ratio:1). I would 
think that would be desirable regardless IMHO. Other option is to generate 
longer error messages with really long layer names. ;-)

Steve

-----Original Message-----
From: Jan Hartmann [mailto:j.l.h.hartm...@uva.nl]
Sent: Friday, April 08, 2011 9:31 AM
To: Lime, Steve D (DNR)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Error Message in WMS service

OK, that means that I have to create an error image the size of the WMS
request and position the message in the middle, with some combination of
PHP Mapscript and PHP/GD. Doable.

Thanks,

Jan

On 8-4-2011 16:27, Lime, Steve D (DNR) wrote:
Looking at the code it's always in the same place, so no...

Steve

-----Original Message-----
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann
Sent: Friday, April 08, 2011 9:21 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Error Message in WMS service

Hi folks, just a beginner's question:

Is it possible to position the image-error message of a WMS request in
the middle of the image? Normally it is placed in the upper left corner,
and with OpenLayers (overlaid over Google Maps) the message is displayed
on a tile outside the visual screen.

Jan
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to