<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hanno,<br>
<br>
looks like your filter <br>
<br>
EXPRESSION ''<br>
<br>
leads to no objects for this layer,I guess : Now your filter looks for
all objects with the value '' in the column 'bfs'. <br>
<br>
Try <br>
<br>
EXPRESSION /./ <br>
<br>
for as single class layer first, to ensure that your filter gets some
objetcs.<br>
<br>
...and indeed: Its a question to put better on the mapserver-list,<br>
<br>
regards, Till<br>
<br>
Rahn Hanno (rahn) wrote:
<blockquote
cite="mid:3F643797A078EB4FB02880080968098401FA5B6D@langouste.zhaw.ch"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<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="">
<hr size="4" width="90%">
_______________________________________________
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>
<pre class="moz-signature" cols="72">--
---------------------------------------------------------
terrestris GmbH & Co. KG
Irmintrudisstrasse 17
53111 Bonn
Germany
Till Adams
Geschäftsführung
Tel: +49 (0)228 / 962 899-52
Fax: +49 (0)228 / 962 899-57
<a class="moz-txt-link-abbreviated" href="mailto:adams@terrestris.de">adams@terrestris.de</a> <a class="moz-txt-link-freetext" href="http://www.terrestris.de">http://www.terrestris.de</a>
Amtsgericht Bonn, HRA 6835
---------------------------------------------------------
Komplementärin:
terrestris Verwaltungs GmbH
vertreten durch:
Hinrich Paulsen, Till Adams
</pre>
</body>
</html>