Hello,
I'm trying to offset and rotate a graphic on my point symbolizer, which
I beleive I can do with SLD 1.1, but it doesn't seem to render on my map
as such. Below is the SLD - can anyone let me know if this is actuallly
supported, or if I need another approach?
Thanks,
Mark
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.1"
xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>Point as graphic</Name>
<UserStyle>
<Title>GeoServer SLD Cook Book: Point as graphic</Title>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="http://localhost/app/resources/images/arrow-long.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>32</Size>
<Rotation><ogc:PropertyName>azimuth</ogc:PropertyName></Rotation>
<PointPlacement>
<Displacement>
<DisplacementX>32</DisplacementX>
<DisplacementY>50</DisplacementY>
</Displacement>
</PointPlacement>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>