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

Simone Dalmasso simone.dalmasso at gmail.com
Thu Jul 7 04:35:36 PDT 2016


Hi Annalisa,

I think you could get answer here but maybe you could get even more success
if you post this to the geoserver support lists as it seems to bee a
geoserver related issue.

Regards

2016-07-07 12:44 GMT+02:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>:

> 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
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


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


More information about the geonode-users mailing list