Any idea why this isn't working? It's taken straight from here: http://geoserver.readthedocs.io/en/latest/_downloads/point_pointasgraphic.sld refernced from this page http://geoserver.readthedocs.io/en/latest/styling/sld-cookbook/points.html

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 
    xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
    <Name>Point as graphic</Name>
      <Title>GeoServer SLD Cook Book: Point as graphic</Title>
                  xlink:href="see-saw.png" />

My graphic is located in the 'styles' directory of the geoserver data directory, but instead of the graphic I get a grey square. Geoserver version


Check please if your style isn't in some workspace - workspaces has their own store, so images for styles in workspace should be placed in (geoserver_data_dir)/workspaces/(workspace_name)/styles not in (geoserver_data_dir)/styles

You could also check in geoserver log's - there are handy informations if you omit all java's stack-trace :)

  • Yes, that was it. I created a style without a workspace and it works. thanks @Jendrusk – minisaurus Mar 24 '18 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.