hi!<br>
styled layer descriptors are just not working for our installation! a
sld argument does not change anything with the layer styles. it's
always the style given in the map file. the sld file is accessable with
the apache web server, so this seems to be not the problem.<br>
<br>
we work with a precompiled mapserver 4.4.1 from debian. everything works fine except sld support!<br>
i've read from some other people having the same problem, espec with
mapserver on linux. they asked if they maybe have to declare a sld
option during compilation. but others answered that just OGR and
WMS_SERVER / WMS_CLIENT is necessary. also some others said, that they
have this problem with linux machines, but NOT with windows machines!? <br>
<br>
our mapserv - v lookes like this:<br>
MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG<br>
<br>
our map file:<br>
MAP<br>
&nbsp; NAME hdmobilemap<br>
&nbsp; FONTSET &quot;./fnt/fonts.txt&quot;<br>
&nbsp; SYMBOLSET &quot;./sym/symbols.sym&quot;<br>
<br>
&nbsp; IMAGECOLOR 255 255 255<br>
&nbsp; SIZE 500 400<br>
&nbsp; EXTENT -110 -60 -10 20<br>
&nbsp; UNITS DD<br>
<br>
&nbsp; IMAGETYPE PNG<br>
<br>
&nbsp; STATUS ON<br>
<br>
&nbsp; WEB<br>
&nbsp;&nbsp;&nbsp; HEADER &quot;null&quot;<br>
&nbsp;&nbsp;&nbsp; TEMPLATE &quot;null&quot;<br>
&nbsp;&nbsp;&nbsp; FOOTER &quot;null&quot;<br>
&nbsp;&nbsp;&nbsp; MINSCALE 1000<br>
&nbsp;&nbsp;&nbsp; MAXSCALE 100000000<br>
&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;/www/htdocs/mapserver/tmp/&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEURL &quot;/mapserver/tmp/&quot;<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE &quot;hd mobile mapserver wms&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS &quot;&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ONLINERESOURCE &quot;<a href="http://emldsv29:8081/cgi-bin/mapserv_wms?">http://emldsv29:8081/cgi-bin/mapserv_wms?</a>&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_SRS &quot;EPSG:31467&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
<br>
LAYER<br>
&nbsp; NAME buildings<br>
&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &quot;buildings&quot;<br>
&nbsp; END<br>
&nbsp; TYPE POLYGON<br>
&nbsp; STATUS OFF<br>
&nbsp; DATA &quot;geom from buildings&quot;<br>
&nbsp; CONNECTION &quot;user=postgres password=hpw4zoom dbname=wlan host=<a href="http://172.16.3.224">172.16.3.224</a> port=5432&quot;<br>
&nbsp; CONNECTIONTYPE postgis<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &quot;init=epsg:31467&quot;<br>
&nbsp; END<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; NAME &quot;/./&quot;<br>
&nbsp;&nbsp;&nbsp; COLOR 200 255 0<br>
&nbsp;&nbsp;&nbsp; OUTLINECOLOR 120 120 120<br>
&nbsp; END<br>
END<br>
<br>
LAYER<br>
&nbsp; NAME &quot;blocks&quot;<br>
&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &quot;blocks&quot;<br>
&nbsp; END<br>
&nbsp; TYPE POLYGON<br>
&nbsp; STATUS ON<br>
&nbsp; DATA &quot;geom from blocks&quot;<br>
&nbsp; CONNECTION &quot;user=postgres password=hpw4zoom dbname=wlan host=<a href="http://172.16.3.224">172.16.3.224</a> port=5432&quot;<br>
&nbsp; CONNECTIONTYPE postgis<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &quot;init=epsg:31467&quot;<br>
&nbsp; END<br>
&nbsp; CLASSITEM &quot;gid&quot;<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; EXPRESSION /./<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 120 200 50<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 'dashed'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 150 0<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
END<br>
<br>
LAYER<br>
&nbsp; NAME &quot;strside&quot;<br>
&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &quot;strside&quot;<br>
&nbsp; END<br>
&nbsp; TYPE LINE<br>
&nbsp; STATUS ON<br>
&nbsp; DATA &quot;geom from strside&quot;<br>
&nbsp; CONNECTION &quot;user=postgres password=hpw4zoom dbname=wlan host=<a href="http://172.16.3.224">172.16.3.224</a> port=5432&quot;<br>
&nbsp; CONNECTIONTYPE postgis<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &quot;init=epsg:31467&quot;<br>
&nbsp; END<br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>
&nbsp; END<br>
END<br>
<br>
END<br>
<br>
our sld (from offical mapserver docs):<br>
&lt;StyledLayerDescriptor version=&quot;1.0.0&quot;&gt;<br>
&nbsp;&lt;NamedLayer&gt;<br>
&nbsp; &lt;Name&gt;strside&lt;/Name&gt;<br>
&nbsp; &lt;UserStyle&gt;<br>
&nbsp;&nbsp; &lt;Title&gt;xxx&lt;/Title&gt;<br>
&nbsp;&nbsp; &lt;FeatureTypeStyle&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;Rule&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;LineSymbolizer&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Geometry&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyName&gt;geom&lt;/PropertyName&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Geometry&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Stroke&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CssParameter name=&quot;stroke&quot;&gt;#0000ff&lt;/CssParameter&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Stroke&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;/LineSymbolizer&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/Rule&gt;<br>
&nbsp;&nbsp; &lt;/FeatureTypeStyle&gt;<br>
&nbsp; &lt;/UserStyle&gt;<br>
&nbsp;&lt;/NamedLayer&gt;<br>
&lt;/StyledLayerDescriptor&gt;<br>
<br>
and we request the wms like this:<br>
<a href="http://emldsv29:8081/cgi-bin/mapserv_wms?SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=strside&amp;SLD=http://emldsv29:8081/mapserver/slds/t.xml&amp;BBOX=3476241.94,5473324.428,3479372.44,5475828.828&amp;WIDTH=500&amp;HEIGHT=400&amp;FORMAT=image/png">
http://emldsv29:8081/cgi-bin/mapserv_wms?SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=strside&amp;SLD=http://emldsv29:8081/mapserver/slds/t.xml&amp;BBOX=3476241.94,5473324.428,3479372.44,5475828.828&amp;WIDTH=500&amp;HEIGHT=400&amp;FORMAT=image/png
</a><br>
<br>
<br>
maybe anyone has a hint!?<br>
thanks a lot,<br>
chris<br>
<br>