Hi,

I have a same problem. I use GeoServer 2.8, but I can not rotate ttf symbol
around a specific point, instead of centerpont. We have arrows point
symbols, to rotate around its base point, not the center point. I don't
want to create two times longer png symbols from all ttf symbol to get
centerpoint at the base point of an arrow symbol. But it seems it is the
only way yet.
But any tips&tricks are helpful about this topic!

Thanks for advance!

Zsolt Magyar

2016-07-07 16:11 GMT+02:00 wiltomap <[email protected]>:

> 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):
>
> <http://osgeo-org.1560.x6.nabble.com/file/n5275180/anchor_point.png>
>
>
> The  doc <http://
>
> http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols.html
> >
> 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.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Is-it-possible-to-change-a-symbol-s-default-anchor-point-in-Geoserver-SLD-tp5275180.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to