[Mapserver-users] Problem with WMS Client
Mathieu Levesque
mathieu.levesque at cidco.ca
Fri Jan 30 07:12:46 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 text="#000000" bgcolor="#ffffff">
<font face="Times New Roman, Times, serif">Hi everyone,<br>
<br>
I have stumbled upon something that, at first sight, looks like a bug
in Mapserver.<br>
<br>
The situation is this:<br>
<br>
I have one server setup as a WMS Client to another WMS Server. The WMS
Server has 3 layers, which are all shapefiles.<br>
<br>
When I send a GetMap request to the Server directly, I get a map with
all 3 layers.<br>
<br>
When I send a GetMap request to the Client, I get a map with only 2 out
of 3 layers, and I can see a Windows popup on the server that says:<br>
<br>
"mapserv.exe has generated errors and will be closed by Windows. You
will need to restart the program".<br>
<br>
If I turn off the layer that winds up missing on the map, everything
goes on fine,.<br>
<br>
Sad thing is I can't find anything in Apache's logs that will tell me
what's going on (all that's there are "Premature end of script headers:
mapserv.exe" entries), and mapserver isn't logging anything either.
Also, running shp2img<br>
<br>
Here is the mapfile for the machine acting as WMS Server:<br>
<br>
NAME FUSION_MTL_JAMES<br>
STATUS ON<br>
SIZE 600 600<br>
EXTENT 300238.877551 5038364.628064 305768.452906 5055285.505418<br>
UNITS METERS<br>
IMAGECOLOR 255 255 255<br>
SHAPEPATH "data"<br>
<br>
WEB<br>
MINSCALE 1000<br>
MAXSCALE 1550000<br>
IMAGEPATH "c:/Program Files/Apache
Group/Apache2/htdocs/FusionMtl/tmp/"<br>
IMAGEURL "/fusionMtl/tmp/"<br>
<br>
LOG "c:\Program Files\Apache Group\Apache2\htdocs\FusionMtl\map.log"<br>
<br>
METADATA<br>
WMS_TITLE "Demo de fusion de donnees spatiales via WMS"<br>
WMS_ABSTRACT "Donnees du port de Montreal"<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:32188"<br>
END<br>
END<br>
<br>
DEBUG ON<br>
<br>
#Layer that's causing the problem<br>
LAYER<br>
NAME MTLLINE<br>
TYPE LINE<br>
STATUS ON<br>
DATA "IndexMtline"<br>
<br>
DEBUG ON<br>
<br>
CLASS<br>
COLOR 0 0 0<br>
END<br>
<br>
METADATA<br>
WMS_NAME "MTLLINE"<br>
WMS_TITLE "Contours du port de Montreal"<br>
WMS_ABSTRACT "Contours du port de Montreal"<br>
WMS_SRS "EPSG:32188"<br>
WMS_SERVER_VERSION "1.1.0"<br>
WMS_ONLINERESOURCE <a class="moz-txt-link-rfc2396E" href="http://www.cidco.ca">"http://www.cidco.ca"</a><br>
WMS_FORMAT "image/gif"<br>
END<br>
<br>
DUMP TRUE<br>
<br>
END<br>
<br>
LAYER<br>
NAME MTLPOLYGON<br>
TYPE POLYGON<br>
STATUS ON<br>
DATA "IndexMtlPolygon"<br>
<br>
DEBUG ON<br>
<br>
CLASS<br>
COLOR 128 0 0<br>
END<br>
<br>
METADATA<br>
WMS_NAME "MTLPOLYGON"<br>
WMS_TITLE "Contours du port de Montreal"<br>
WMS_ABSTRACT "Contours du port de Montreal"<br>
WMS_SRS "EPSG:32188"<br>
WMS_SERVER_VERSION "1.1.0"<br>
WMS_ONLINERESOURCE <a class="moz-txt-link-rfc2396E" href="http://www.cidco.ca">"http://www.cidco.ca"</a><br>
WMS_FORMAT "image/gif"<br>
END<br>
<br>
DUMP TRUE<br>
<br>
END<br>
<br>
LAYER<br>
NAME LIMITE<br>
TYPE LINE<br>
STATUS ON<br>
DATA "LimiteMtl"<br>
<br>
DEBUG ON<br>
<br>
CLASS<br>
COLOR 128 0 255<br>
END<br>
<br>
METADATA<br>
WMS_NAME "LIMITE"<br>
WMS_TITLE "Contours du port de Montreal"<br>
WMS_ABSTRACT "Contours du port de Montreal"<br>
WMS_SRS "EPSG:32188"<br>
WMS_SERVER_VERSION "1.1.0"<br>
WMS_ONLINERESOURCE <a class="moz-txt-link-rfc2396E" href="http://www.cidco.ca">"http://www.cidco.ca"</a><br>
WMS_FORMAT "image/gif"<br>
END<br>
<br>
DUMP TRUE<br>
<br>
END<br>
<br>
END<br>
<br>
And here is the mapfile for the machine acting as WMS Client
(server.address is set to machine's real IP in mapfile):<br>
<br>
NAME DEMO_FUSION_MTL<br>
STATUS ON<br>
SIZE 600 600<br>
EXTENT 300238.877551 5038364.628064 305768.452906 5055285.505418<br>
UNITS METERS<br>
SHAPEPATH "data"<br>
IMAGECOLOR 255 255 255<br>
<br>
WEB<br>
LOG "c:/Program Files/Apache Group/Apache2/htdocs/fusionMtl/wms.log"<br>
IMAGEPATH "c:/Program Files/Apache
Group/Apache2/htdocs/FusionMtl/tmp/"<br>
IMAGEURL "/FusionMtl/tmp/"<br>
MINSCALE 1000<br>
MAXSCALE 1550000<br>
<br>
METADATA<br>
wms_title "Demo de fusion de donnees spatiales via WMS"<br>
wms_abstract "Donnees du port de Montreal"<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:32188"<br>
END<br>
END<br>
<br>
DEBUG ON<br>
<br>
LAYER<br>
NAME CONTOURS<br>
TYPE RASTER<br>
STATUS ON<br>
CONNECTIONTYPE WMS<br>
CONNECTION
<a class="moz-txt-link-rfc2396E" href="http://server.address/cgi-bin/mapserv.exe?map=c:\Program%20Files\Apache%20Group\Apache2\htdocs\fusionMtl\mtl.map&">"http://server.address/cgi-bin/mapserv.exe?map=c:\Program%20Files\Apache%20Group\Apache2\htdocs\fusionMtl\mtl.map&"</a><br>
<br>
METADATA<br>
wms_name "MTLLINE"<br>
wms_title "Contours du port de Montreal"<br>
wms_abstract "Contours"<br>
wms_srs "EPSG:32188"<br>
wms_server_version "1.1.0"<br>
wms_format "image/gif"<br>
END <br>
<br>
DEBUG ON <br>
END<br>
<br>
LAYER<br>
NAME POLYS<br>
TYPE RASTER<br>
STATUS ON<br>
CONNECTIONTYPE WMS<br>
CONNECTION
<a class="moz-txt-link-rfc2396E" href="http://server.address/cgi-bin/mapserv.exe?map=c:\Program%20Files\Apache%20Group\Apache2\htdocs\fusionMtl\mtl.map&">"http://server.address/cgi-bin/mapserv.exe?map=c:\Program%20Files\Apache%20Group\Apache2\htdocs\fusionMtl\mtl.map&"</a><br>
<br>
METADATA<br>
wms_name "MTLPOLYGON"<br>
wms_title "Contours du port de Montreal"<br>
wms_abstract "Hangars and such"<br>
wms_srs "EPSG:32188"<br>
wms_server_version "1.1.0"<br>
wms_format "image/gif"<br>
END <br>
<br>
DEBUG ON <br>
END<br>
<br>
LAYER<br>
NAME LIMITES<br>
TYPE RASTER<br>
STATUS ON<br>
CONNECTIONTYPE WMS<br>
CONNECTION
<a class="moz-txt-link-rfc2396E" href="http://server.address/cgi-bin/mapserv.exe?map=c:\Program%20Files\Apache%20Group\Apache2\htdocs\fusionMtl\mtl.map&">"http://server.address/cgi-bin/mapserv.exe?map=c:\Program%20Files\Apache%20Group\Apache2\htdocs\fusionMtl\mtl.map&"</a><br>
<br>
METADATA<br>
wms_name "LIMITE"<br>
wms_title "Contours du port de Montreal"<br>
wms_abstract "Limite d'on sait pas trop quoi"<br>
wms_srs "EPSG:32188"<br>
wms_server_version "1.1.0"<br>
wms_format "image/gif"<br>
END <br>
<br>
DEBUG ON <br>
END<br>
<br>
<br>
END<br>
<br>
Am I doing anything wrong?<br>
<br>
Thanks in advance,<br>
<br>
Mathieu<br>
</font>
<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