&SLD_BODY not working, &SLD is working

Bart van den Eijnden bartvde at XS4ALL.NL
Fri Sep 2 06:25:09 EDT 2005


Hi list,

I have no trouble getting my selection highlighted using a &SLD type of
request, eg:

http://localhost:8080/stragisweb/cgi-bin/mapserv.exe?map=/ms4w/apps/stragisweb/htdocs/sites/ijmond/map/stragisweb.map&format=image/png&exceptions=application/vnd.ogc.se_inimage&layers=bisrapport_vlak,bisrapport_vlak,kadperceel&styles=,,&srs=EPSG:28992&width=500&height=500&bbox=100641.32605,496962.94195,100776.59795,497104.145&request=GetMap&version=1.1.1&service=WMS&sld=http://localhost:8080/mami/common/gis/selection.sld

But I want to use SLD_BODY since I do not want to write sld files all the
time from my application, but using the same sld in &SLD_BODY does not
highlight the selection, eg:

http://localhost:8080/stragisweb/cgi-bin/mapserv.exe?map=/ms4w/apps/stragisweb/htdocs/sites/ijmond/map/stragisweb.map&format=image/png&exceptions=application/vnd.ogc.se_inimage&layers=bisrapport_vlak,bisrapport_vlak,kadperceel&styles=,,&srs=EPSG:28992&width=500&height=500&bbox=100641.32605,496962.94195,100776.59795,497104.145&request=GetMap&version=1.1.1&service=WMS&sld_body=%3CStyledLayerDescriptor%20version=%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Ekadperceel%3C/Name%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3Cogc:Filter%3E%3Cogc:And%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3EGEMCOD%3C/ogc:PropertyName%3E%3Cogc:Literal%3EIMD00%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3ESECTIE%3C/ogc:PropertyName%3E%3Cogc:Literal%3EL%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3ENUMMER%3C/ogc:PropertyName%3E%3Cogc:Literal%3E3231%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/og!
 c:And%3E%3C/ogc:Filter%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter%20name=%22stroke%22%3E#ffff00%3C/CssParameter%3E%3CCssParameter%20name=%22stroke-width%22%3E5%3C/CssParameter%3E%3C/Stroke%3E%3C/LineSymbolizer%3E%3C/Rule%3E%3C/FeatureTypeStyle%3E%3C/UserStyle%3E%3C/NamedLayer%3E%3C/StyledLayerDescriptor%3E

I can't get any useful debugging info out of Mapserver to help me solve
this problem.

Does anybody have an idea what could be going wrong? I do get back an
image but the selection does not show.

I am using 4.7, CVS version from 2 weeks ago.

Best regards,
Bart



More information about the mapserver-users mailing list