I'm using Geoserver 2.6. I was wondering if it was possible de specify the anchor point for a symbol other than the exact center of the symbol.
Here a piece of SLD file:
<Rule> <PointSymbolizer> <Graphic> <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="http://mywebsite.fr/img/test.png"/> <Format>image/png</Format> </ExternalGraphic> </Graphic> </PointSymbolizer> </Rule>
Here is what I'd like to achieve (red dot = anchor point):
The doc says this:
Graphic symbols are rendered so that the center of the graphic extent lies on the placement point (or points, in the case of repeated or tiled graphics). If it is desired to have a graphic offset from a point (such as a symbol which acts as a pointer) it is necessary to offset the visible portion of the graphic within the overall extent. For images this can be accomplished by extending the image with transparent pixels. For SVG graphics this can be done by surrounding the shape with an invisible rectangle with the desired relative position.
I tried it out but this does not do the job... It seems that the invisible rectangle I positioned around the shape is ignored.