I’ve been getting a rendering issue while trying to use web images (png) as image icons, it shows a gray box instead of rendering the icon.
I’m using the GeoServer version: 2.24.4 in a docker container using the docker image: https://hub.docker.com/layers/geonode/geoserver/2.24.4-v1/images/sha256-fcd46f33236edcb93b237d1fb7eef350550b90e83976697763f1a4bf0641527e?context=explore
Here is my style SLD snippet:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:se="http://www.opengis.net/se">
<NamedLayer>
<se:Name>cctv_cameras</se:Name>
<UserStyle>
<se:Name>cctv_cameras</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:PointSymbolizer>
<se:Graphic>
<se:ExternalGraphic>
<se:OnlineResource xlink:type="simple" xlink:href="https://cdn.iconscout.com/icon/premium/png-256-thumb/webp-file-6503923-5466753.png"/>
<se:Format>image/png</se:Format>
</se:ExternalGraphic>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
After creating the SLD and publishing it with a layer, when I’m selecting it it shows the gray box as in layer preview:
Here is the image I’m using:
The relevant geoserver log entry:
24 Sep 01:22:44 WARN [geotools.xsd] - Sax parser property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' not recognized. Xerces version is incompatible.
24 Sep 01:22:44 WARN [geotools.xsd] - Sax parser property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' not recognized. Xerces version is incompatible.
24 Sep 01:22:51 WARN [geotools.xsd] - Sax parser property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' not recognized. Xerces version is incompatible.
Any suggestions?