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>
NAME hdmobilemap<br>
FONTSET "./fnt/fonts.txt"<br>
SYMBOLSET "./sym/symbols.sym"<br>
<br>
IMAGECOLOR 255 255 255<br>
SIZE 500 400<br>
EXTENT -110 -60 -10 20<br>
UNITS DD<br>
<br>
IMAGETYPE PNG<br>
<br>
STATUS ON<br>
<br>
WEB<br>
HEADER "null"<br>
TEMPLATE "null"<br>
FOOTER "null"<br>
MINSCALE 1000<br>
MAXSCALE 100000000<br>
IMAGEPATH "/www/htdocs/mapserver/tmp/"<br>
IMAGEURL "/mapserver/tmp/"<br>
METADATA<br>
WMS_TITLE "hd mobile mapserver wms"<br>
WMS_ACCESSCONSTRAINTS ""<br>
WMS_ONLINERESOURCE "<a href="http://emldsv29:8081/cgi-bin/mapserv_wms?">http://emldsv29:8081/cgi-bin/mapserv_wms?</a>"<br>
WMS_SRS "EPSG:31467"<br>
END<br>
END<br>
<br>
LAYER<br>
NAME buildings<br>
METADATA<br>
"wms_title" "buildings"<br>
END<br>
TYPE POLYGON<br>
STATUS OFF<br>
DATA "geom from buildings"<br>
CONNECTION "user=postgres password=hpw4zoom dbname=wlan host=<a href="http://172.16.3.224">172.16.3.224</a> port=5432"<br>
CONNECTIONTYPE postgis<br>
PROJECTION<br>
"init=epsg:31467"<br>
END<br>
CLASS<br>
NAME "/./"<br>
COLOR 200 255 0<br>
OUTLINECOLOR 120 120 120<br>
END<br>
END<br>
<br>
LAYER<br>
NAME "blocks"<br>
METADATA<br>
"wms_title" "blocks"<br>
END<br>
TYPE POLYGON<br>
STATUS ON<br>
DATA "geom from blocks"<br>
CONNECTION "user=postgres password=hpw4zoom dbname=wlan host=<a href="http://172.16.3.224">172.16.3.224</a> port=5432"<br>
CONNECTIONTYPE postgis<br>
PROJECTION<br>
"init=epsg:31467"<br>
END<br>
CLASSITEM "gid"<br>
CLASS<br>
EXPRESSION /./<br>
STYLE<br>
COLOR 120 200 50<br>
END<br>
STYLE<br>
SYMBOL 'dashed'<br>
SIZE 2<br>
OUTLINECOLOR 0 150 0<br>
END<br>
END<br>
END<br>
<br>
LAYER<br>
NAME "strside"<br>
METADATA<br>
"wms_title" "strside"<br>
END<br>
TYPE LINE<br>
STATUS ON<br>
DATA "geom from strside"<br>
CONNECTION "user=postgres password=hpw4zoom dbname=wlan host=<a href="http://172.16.3.224">172.16.3.224</a> port=5432"<br>
CONNECTIONTYPE postgis<br>
PROJECTION<br>
"init=epsg:31467"<br>
END<br>
CLASS<br>
COLOR 255 0 0<br>
END<br>
END<br>
<br>
END<br>
<br>
our sld (from offical mapserver docs):<br>
<StyledLayerDescriptor version="1.0.0"><br>
<NamedLayer><br>
<Name>strside</Name><br>
<UserStyle><br>
<Title>xxx</Title><br>
<FeatureTypeStyle><br>
<Rule><br>
<LineSymbolizer><br>
<Geometry><br>
<PropertyName>geom</PropertyName><br>
</Geometry><br>
<Stroke><br>
<CssParameter name="stroke">#0000ff</CssParameter><br>
</Stroke><br>
</LineSymbolizer><br>
</Rule><br>
</FeatureTypeStyle><br>
</UserStyle><br>
</NamedLayer><br>
</StyledLayerDescriptor><br>
<br>
and we request the wms like this:<br>
<a href="http://emldsv29:8081/cgi-bin/mapserv_wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=strside&SLD=http://emldsv29:8081/mapserver/slds/t.xml&BBOX=3476241.94,5473324.428,3479372.44,5475828.828&WIDTH=500&HEIGHT=400&FORMAT=image/png">
http://emldsv29:8081/cgi-bin/mapserv_wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=strside&SLD=http://emldsv29:8081/mapserver/slds/t.xml&BBOX=3476241.94,5473324.428,3479372.44,5475828.828&WIDTH=500&HEIGHT=400&FORMAT=image/png
</a><br>
<br>
<br>
maybe anyone has a hint!?<br>
thanks a lot,<br>
chris<br>
<br>