Hello,

I am trying to use CQL expression in dynamic symbolizers. I am using this
as guidelines:
http://docs.geoserver.org/2.9.0/user/styling/sld-extensions/pointsymbols.html#dynamic-symbolizers

I wrote an ows service that is returning png image and I want to use it in
SLD.
This is what I have in the SLD:
          <se:PointSymbolizer>
            <se:Graphic>
              <se:ExternalGraphic>
                <se:OnlineResource xlink:type="simple" xlink:href="
http://localhost:8888/geoserver/ows?request=getMapSymbol&amp;service=monitoringStationSymbol&amp;version=1.0.0&amp;stationid=${id}";
/>
                <se:Format>image/png</se:Format>
              </se:ExternalGraphic>
            </se:Graphic>
          </se:PointSymbolizer>

id is the primary key in the layer.
When I try to preview the layer I get this error:
java.io.IOException: java.lang.RuntimeException: Parsing failed for href:
java.net.URISyntaxException: Illegal character in query at index 117:
http://localhost:8888/wmis-web-app/ows?request=getMapSymbol&service=monitoringStationSymbol&version=1.0.0&stationid=${id}

If I remove "&amp;stationid=${id}" from the url, everything is working. My
ows service is returning a picture and this picture is used as a symbol
when I load the wms layer service in openlayers.
What is wrong in the expression that I am trying to use?

I am using Geoserver 2.9.0 on Apache Tomcat 8.5.4 on windows 8.1.

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

Reply via email to