[Geoserver-users] SLD_BODY Param

Hello, I am trying to use my own SLD to highlight features. I have tried
my style alone in Geoserver and it works fine, but when I use it through
SLD_BODY parameter it does not work at all.

Does anyone have tried to highlight features through SLD_BODY parameter
in Geoserver?

I attach my Geoserver Log and HTTP Request for further information.
Any suggestion will be much appreciated.

2007_01_29.request.log (27.1 KB)

request.txt (1.87 KB)

Make sure your NamedLayer <Name> is the correct name of the feature type you want it to render. You might want to put the namespace before the name too (topp:MUNICIPIOS).
Also in the second rule you have an empty <ElseFilter/>, you can just remove that because it might be causing problems.

Hope that helps,

Brent Owens
(The Open Planning Project)

Aitor Calero Garcia wrote:

Hello, I am trying to use my own SLD to highlight features. I have tried
my style alone in Geoserver and it works fine, but when I use it through
SLD_BODY parameter it does not work at all.

Does anyone have tried to highlight features through SLD_BODY parameter
in Geoserver?

I attach my Geoserver Log and HTTP Request for further information.
Any suggestion will be much appreciated.

  ------------------------------------------------------------------------

http://127.0.0.1:8080/geoserver/wms?LAYERS=usm:SIGI_MADRID_MUNICIPIOS&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:32630&SLD_BODY=<?xml%20version="1.0"%20encoding="UTF-8"?><StyledLayerDescriptor%20version="1.0.0"%20xsi:schemaLocation="http://www.opengis.net/sld%20StyledLayerDescriptor.xsd"%20xmlns="http://www.opengis.net/sld"%20xmlns:ogc="http://www.opengis.net/ogc"%20xmlns:xlink="http://www.w3.org/1999/xlink"%20xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><NamedLayer><Name>MUNICIPIOS</Name><UserStyle><Title>Municipios%20Resaltados</Title><Abstract>Estilo%20para%20resalta%20un%20municipio%20en%20SIGC.MUNICIPIOS</Abstract><FeatureTypeStyle><Rule><Name>getafe</Name><Title>Getafe</Title><ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>NOMBRE</ogc:PropertyName><ogc:Literal>MADRID</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter><PolygonSymbolizer><Fill><CssParameter%20name="fill"><ogc:Literal>0xAAAAAA</ogc:Literal></CssParameter></Fill><Stroke><CssParameter%20name="stroke"><ogc:Literal>0x000000</ogc:Literal></CssParameter></Stroke></PolygonSymbolizer></Rule><Rule><Name>Resto</Name><Title>Resto%20de%20Municipios</Title><ElseFilter/><PolygonSymbolizer><Fill><CssParameter%20name="fill">0xbfaaea</CssParameter></Fill><Stroke><CssParameter%20name="stroke">0xa6c6ff</CssParameter><CssParameter%20name="stroke-width">1.0</CssParameter></Stroke></PolygonSymbolizer></Rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>&BBOX=478616.448,4416251,550924.672,4488559.224&WIDTH=256&HEIGHT=256
------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users