[mapserver-users] Trouble shooting SLD?

Bartłomiej Burkot pomiarowiec10 at poczta.onet.pl
Mon Oct 18 05:15:21 EDT 2010


  Hi

if you use SLD_BODY in Your url parameter in wms getmap request try to 
replace all '#' characters to '%23'
example:
http://yourhost/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=6411762.591659,5756575.612084,6416330.414387,5758975.584279&CRS=EPSG:your_epsg&WIDTH=1102&HEIGHT=580&LAYERS=your_layer&FORMAT=image/gif&DPI=96&TRANSPARENT=TRUE&SLD_BODY=<StyledLayerDescriptor 
version="1.0.0" xmlns="http://www.opengis.net/sld" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:ogc="http://www.opengis.net/ogc" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"><NamedLayer><Name>your_layer</Name><UserStyle><FeatureTypeStyle><Rule><PolygonSymbolizer></PolygonSymbolizer><PolygonSymbolizer><Stroke><CssParameter 
name="stroke">*%23ff00ff*</CssParameter><CssParameter 
name="stroke-width">3.00</CssParameter></Stroke></PolygonSymbolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>

Bartek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101018/f661fee8/attachment.html


More information about the mapserver-users mailing list