[Mapserver-users] Cascading mapserver

Mathieu Levesque mathieu.levesque at cidco.ca
Tue Jan 20 07:39:41 PST 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.  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>
    LOG "path\to\htdocs\wmscascade\cascade.log"<br>
    IMAGEPATH "path/to/htdocs/wmscascade/Images/"<br>
    IMAGEURL "wmscascade/Images"<br>
      MINSCALE 1000<br>
      MAXSCALE 1550000    <br>
    <br>
    METADATA<br>
        WMS_TITLE "Test de serveur wms en cascade"<br>
        WMS_ABSTRACT "Contient essentiellement le demo de mapserver"<br>
        WMS_ACCESSCONSTRAINTS none<br>
        <br>
        WMS_ONLINERESOURCE <a class="moz-txt-link-rfc2396E" href="http://www.cidco.ca">"http://www.cidco.ca"</a><br>
        <br>
        WMS_SRS "EPSG:26915"<br>
    END<br>
END<br>
<br>
DEBUG TRUE<br>
<br>
LAYER<br>
    NAME LIMITE_COMTES<br>
    TYPE RASTER<br>
    STATUS DEFAULT<br>
    CONNECTIONTYPE WMS<br>
    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&FORMAT=image/jpeg&"</a><br>
<br>
    METADATA<br>
        #Metadata pour acceder au serveur remote    <br>
        wms_srs "EPSG:26915"<br>
        wms_name "ctybdpy2"<br>
        wms_server_version "1.1.0"<br>
        wms_format "image/jpeg"<br>
        <br>
        #Metadata de la couche (pour publication<br>
        wms_title "Limite des comtes"<br>
        wms_abstract "Couche des limites des comtes"<br>
    END<br>
    <br>
    DEBUG ON<br>
    <br>
END<br>
        <br>
        <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&VERSION=1.1.0&REQUEST=GetMap</a><br>
<br>
Other detail that might be interesting:  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éveloppement
en Cartographie des Océans (CIDCO),
310, Allée des Ursulines,
Rimouski, QC,
G5L 3A1
Té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