[GeoNode-users] error on using svg or png in style

Annalisa Schiavon annalisa.schiavon at gmail.com
Thu Jul 7 03:44:04 PDT 2016


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 (and also the associated layer in geonode) 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

Geonode ver.: 2.4
Geoserver ver.: 2.7.4

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

Thanks
Annalisa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160707/c80e4c29/attachment.html>


More information about the geonode-users mailing list