<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi<br>
<blockquote
cite="mid:3F643797A078EB4FB02880080968098401FA5B6D@langouste.zhaw.ch"
type="cite"><font face="Arial" size="2">var mapFile2 =
"../htdocs/"+pfad+"/Maps/Hintergrund.map";</font></blockquote>
use absolute paths to mapfile (/var/htdocs/+pfad+..... ). Not relative.<br>
Test Your WMS server in some WMS-client (e.g. QGIS) with this paths.<br>
Bartek<br>
<br>
<blockquote
cite="mid:3F643797A078EB4FB02880080968098401FA5B6D@langouste.zhaw.ch"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="MS Exchange Server version 6.5.7654.12">
<title>Perhaps a UMN Question</title>
<!-- Converted from text/rtf format -->
<p><font face="Arial" size="2">Hello list,</font>
</p>
<p><font face="Arial" size="2">I have a little question. Perhaps it
is a UMN Mapserver Mapfile question, but perhaps you can help me a
little bit.</font>
</p>
<p><font face="Arial" size="2">I try to show a WMS layer in
OpenLayers. For this I made a mapfile. In this mapfile I realise a
layer like this:</font>
</p>
<p><font face="Arial" size="2">LAYER</font>
<br>
<font face="Arial" size="2"> NAME 'symbol'</font>
<br>
<font face="Arial" size="2"> TYPE POLYGON</font>
<br>
<font face="Arial" size="2"> </font>
<br>
<font face="Arial" size="2"> CONNECTIONTYPE postgis</font>
<br>
<font face="Arial" size="2"> CONNECTION 'host=*** user=***
password=*** dbname=***'</font>
<br>
<font face="Arial" size="2"> DATA 'the_geom FROM gines_geo_2007
using unique oid using srid 21781'</font>
<br>
<br>
<font face="Arial" size="2">METADATA</font>
<br>
<font face="Arial" size="2">"wms_title" "WMS symbol"</font>
<br>
<font face="Arial" size="2">END</font>
<br>
<br>
<font face="Arial" size="2">PROJECTION</font>
<br>
<font face="Arial" size="2">"init=epsg:21781"</font>
<br>
<font face="Arial" size="2">END </font>
<br>
<font face="Arial" size="2"> </font>
<br>
<font face="Arial" size="2"> STATUS ON</font>
<br>
<br>
<font face="Arial" size="2"> CLASSITEM 'bfs'</font>
<br>
<font face="Arial" size="2"> CLASS</font>
<br>
<font face="Arial" size="2"> NAME ''</font>
<br>
<font face="Arial" size="2"> EXPRESSION '' </font>
<br>
<font face="Arial" size="2"> STYLE</font>
<br>
<font face="Arial" size="2"> SYMBOL 0</font>
<br>
<font face="Arial" size="2">SIZE 3</font>
<br>
<font face="Arial" size="2"> COLOR 63 153 94</font>
<br>
<font face="Arial" size="2">OUTLINECOLOR 170 85 0</font>
<br>
<font face="Arial" size="2"> END</font>
<br>
<font face="Arial" size="2"> END </font>
<br>
<font face="Arial" size="2">END</font>
</p>
<p><font face="Arial" size="2">All other layers in this mapfile
works, so I think the mapfile header is correct.</font>
</p>
<p><font face="Arial" size="2">And now I try to test the layer in my
OpenLayers. For this I try this:</font>
</p>
<p><font face="Arial" size="2">var urlArray =["<a
moz-do-not-send="true" href="http://***/cgi-bin/mapserv.exe">http://***/cgi-bin/mapserv.exe</a>?",
"</font><a moz-do-not-send="true" href="http://***/cgi-bin/mapserv.exe?"><u><font
color="#0000ff" face="Arial" size="2">http://***/cgi-bin/mapserv.exe?</font></u></a><font
face="Arial" size="2">"];</font>
<br>
<font face="Arial" size="2">var mapFile2 =
"../htdocs/"+pfad+"/Maps/Hintergrund.map";</font>
</p>
<p><font face="Arial" size="2">var symbolLayer = new
OpenLayers.Layer.WMS("Symbollayer", urlArray, {map:mapFile2,
layers:"symbol", transparent:"true"},{singleTile: true, ratio:1});</font></p>
<p><font face="Arial" size="2">symbolLayer.setIsBaseLayer(false);
</font><br>
<font face="Arial" size="2">map.addLayer(symbolLayer);</font>
</p>
<p><font face="Arial" size="2">But I see nothing. In The
Layerswitcher the layer is shown, but I see no map. All other layers
work, so that I think the extent and so on is right. I think this is a
UMN problem, but perhaps somebody has an idea here? If I try to show
the GetMap request directly in the Browser it does'nt work, but I get
no error message or message that something is wrong.</font></p>
<p><font face="Arial" size="2">Hope that somebody can help me.</font>
</p>
<p><font face="Arial" size="2">Greetings</font>
<br>
<font face="Arial" size="2">Hanno </font>
</p>
<br>
<p><font face="Arial"> </font>
<br>
<font face="Arial"> </font>
</p>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>