sld problem with ms 4.4.1
Christian Sengstock
csengstock at GMAIL.COM
Fri Dec 16 04:47:08 PST 2005
hi!
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.
we work with a precompiled mapserver 4.4.1 from debian. everything works
fine except sld support!
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!?
our mapserv - v lookes like this:
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
our map file:
MAP
NAME hdmobilemap
FONTSET "./fnt/fonts.txt"
SYMBOLSET "./sym/symbols.sym"
IMAGECOLOR 255 255 255
SIZE 500 400
EXTENT -110 -60 -10 20
UNITS DD
IMAGETYPE PNG
STATUS ON
WEB
HEADER "null"
TEMPLATE "null"
FOOTER "null"
MINSCALE 1000
MAXSCALE 100000000
IMAGEPATH "/www/htdocs/mapserver/tmp/"
IMAGEURL "/mapserver/tmp/"
METADATA
WMS_TITLE "hd mobile mapserver wms"
WMS_ACCESSCONSTRAINTS ""
WMS_ONLINERESOURCE "http://emldsv29:8081/cgi-bin/mapserv_wms?"
WMS_SRS "EPSG:31467"
END
END
LAYER
NAME buildings
METADATA
"wms_title" "buildings"
END
TYPE POLYGON
STATUS OFF
DATA "geom from buildings"
CONNECTION "user=postgres password=hpw4zoom dbname=wlan
host=172.16.3.224port=5432"
CONNECTIONTYPE postgis
PROJECTION
"init=epsg:31467"
END
CLASS
NAME "/./"
COLOR 200 255 0
OUTLINECOLOR 120 120 120
END
END
LAYER
NAME "blocks"
METADATA
"wms_title" "blocks"
END
TYPE POLYGON
STATUS ON
DATA "geom from blocks"
CONNECTION "user=postgres password=hpw4zoom dbname=wlan
host=172.16.3.224port=5432"
CONNECTIONTYPE postgis
PROJECTION
"init=epsg:31467"
END
CLASSITEM "gid"
CLASS
EXPRESSION /./
STYLE
COLOR 120 200 50
END
STYLE
SYMBOL 'dashed'
SIZE 2
OUTLINECOLOR 0 150 0
END
END
END
LAYER
NAME "strside"
METADATA
"wms_title" "strside"
END
TYPE LINE
STATUS ON
DATA "geom from strside"
CONNECTION "user=postgres password=hpw4zoom dbname=wlan
host=172.16.3.224port=5432"
CONNECTIONTYPE postgis
PROJECTION
"init=epsg:31467"
END
CLASS
COLOR 255 0 0
END
END
END
our sld (from offical mapserver docs):
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>strside</Name>
<UserStyle>
<Title>xxx</Title>
<FeatureTypeStyle>
<Rule>
<LineSymbolizer>
<Geometry>
<PropertyName>geom</PropertyName>
</Geometry>
<Stroke>
<CssParameter name="stroke">#0000ff</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
and we request the wms like this:
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
maybe anyone has a hint!?
thanks a lot,
chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051216/b5ecd32e/attachment.htm>
More information about the MapServer-users
mailing list