[Mapserver-users] Cascading mapserver

Mathieu Levesque mathieu.levesque at cidco.ca
Tue Jan 20 10:39:41 EST 2004


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body
 style="margin: 0px 100px 10px 10px; background-position: right bottom; font-size: 12pt; background-repeat: no-repeat; font-family: Comic Sans MS;"
 text="#000000" bgcolor="#ffffff">
<font face="Times New Roman, Times, serif">Hi everybody,<br>
<br>
I've been trying to setup a cascading mapserver using the itasca demo
files but I can't get the cascading server to work ok.<br>
<br>
If I connect directly to the originating WMS server, everything comes
up ok (both GetCapabilities and GetMap).<br>
<br>
If I connect through the cascading WMS server, I can get the
Capabilities XML, but all GetMap requests come up with a 500 error.&nbsp; In
the Apache log I can see the following errors:<br>
<br>
[Tue Jan 20 10:17:57 2004] [error] [client 127.0.0.1] Premature end of
script headers: mapserv.exe<br>
[Tue Jan 20 10:17:57 2004] [error] [client 127.0.0.1] ERROR 4:
`path/to/wmscascade/Images/107461187731640.img.tmp' not recognised as a
supported file format.<br>
<br>
Here is my mapfile for the cascading server:<br>
<br>
NAME MAP_CASCADE<br>
STATUS ON<br>
SIZE 600 600<br>
EXTENT 388107.634400379 5203120.88405952 500896.339019834
5310243.30613897<br>
UNITS METERS<br>
FONTSET "Fonts/fonts.list"<br>
IMAGECOLOR 255 255 255<br>
<br>
<br>
WEB<br>
&nbsp;&nbsp;&nbsp; LOG "path\to\htdocs\wmscascade\cascade.log"<br>
&nbsp;&nbsp;&nbsp; IMAGEPATH "path/to/htdocs/wmscascade/Images/"<br>
&nbsp;&nbsp;&nbsp; IMAGEURL "wmscascade/Images"<br>
&nbsp; &nbsp;&nbsp;&nbsp; MINSCALE 1000<br>
&nbsp; &nbsp;&nbsp;&nbsp; MAXSCALE 1550000&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WMS_TITLE "Test de serveur wms en cascade"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WMS_ABSTRACT "Contient essentiellement le demo de mapserver"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS none<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WMS_ONLINERESOURCE <a class="moz-txt-link-rfc2396E" href="http://www.cidco.ca">"http://www.cidco.ca"</a><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WMS_SRS "EPSG:26915"<br>
&nbsp;&nbsp;&nbsp; END<br>
END<br>
<br>
DEBUG TRUE<br>
<br>
LAYER<br>
&nbsp;&nbsp;&nbsp; NAME LIMITE_COMTES<br>
&nbsp;&nbsp;&nbsp; TYPE RASTER<br>
&nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>
&nbsp;&nbsp;&nbsp; CONNECTIONTYPE WMS<br>
&nbsp;&nbsp;&nbsp; CONNECTION
<a class="moz-txt-link-rfc2396E" href="http://originating.server/cgi-bin/mapserv.exe?map=path\to\htdocs\mapserver_demos\demo.map&FORMAT=image/jpeg&">"http://originating.server/cgi-bin/mapserv.exe?map=path\to\htdocs\mapserver_demos\demo.map&amp;FORMAT=image/jpeg&amp;"</a><br>
<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #Metadata pour acceder au serveur remote&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wms_srs "EPSG:26915"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wms_name "ctybdpy2"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wms_server_version "1.1.0"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wms_format "image/jpeg"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #Metadata de la couche (pour publication<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wms_title "Limite des comtes"<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wms_abstract "Couche des limites des comtes"<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; DEBUG ON<br>
&nbsp;&nbsp;&nbsp; <br>
END<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
END<br>
<br>
And finally, the request URL:<br>
<br>
<a class="moz-txt-link-freetext" href="http://127.0.0.1/cgi-bin/mapserv.exe?map=path\to\htdocs\wmscascade\cascade.map&VERSION=1.1.0&REQUEST=GetMap">http://127.0.0.1/cgi-bin/mapserv.exe?map=path\to\htdocs\wmscascade\cascade.map&amp;VERSION=1.1.0&amp;REQUEST=GetMap</a><br>
<br>
Other detail that might be interesting:&nbsp; I get nothing in the mapserver
log file that I specified (/wmscascade/cascade.log).<br>
<br>
Does anybody have any clue?<br>
<br>
Thanks in advance,<br>
<br>
Mathieu<br>
</font><tt></tt>
<pre cols="72" class="moz-signature">-- 
----------------------------------------
Mathieu Levesque,
Programmeur-Analyste,
Centre Interdisciplinaire de D&eacute;veloppement
en Cartographie des Oc&eacute;ans (CIDCO),
310, All&eacute;e des Ursulines,
Rimouski, QC,
G5L 3A1
T&eacute;l: (418) 723-1986, ext. 1792
Fax: (418) 724-1842
Courriel: <a class="moz-txt-link-abbreviated" href="mailto:mathieu.levesque at cidco.ca">mathieu.levesque at cidco.ca</a></pre>
</body>
</html>




More information about the mapserver-users mailing list