Hi all.
I've tried to create a sld style using an external graphic:
...
<se:Rule>
          <se:Name>Single symbol</se:Name>
          <se:PointSymbolizer>
            <se:Graphic>
              <se:ExternalGraphic>
                <se:OnlineResource xlink:type="simple"
xlink:href="file:///var/www/geonode/static/img/ico/poi_tower_communications.svg"/>
                <se:Format>image/svg+xml</se:Format>
              </se:ExternalGraphic>
              <se:Size>15</se:Size>
            </se:Graphic>
          </se:PointSymbolizer>
        </se:Rule>
...
and than:
...
<se:Rule>
          <se:Name>Single symbol</se:Name>
          <se:PointSymbolizer>
            <se:Graphic>
              <se:ExternalGraphic>
                <se:OnlineResource xlink:type="simple" xlink:href="
http://geomap.arpa.veneto.it/static/img/ico/antenna-with-signal-transmission.png
"/>
                <se:Format>image/png</se:Format>
              </se:ExternalGraphic>
              <se:Size>15</se:Size>
            </se:Graphic>
          </se:PointSymbolizer>
        </se:Rule>
....

In both cases, into style editor the preview works fine, but the layer
preview of geoserver returns an error:

java.io.IOException: java.lang.RuntimeException: Parsing failed for
UserStyle: java.lang.ClassCastException: java.util.HashMap cannot be cast
to org.opengis.util.International

Geoserver ver.: 2.7.4  (with Geonode project, ver. 2.4)

It is the first time I try to use external graphics. Any ideas to resolve
error?

Thanks
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to