http://mapserver.org/mapfile/symbol.html => anchorpoint https://github.com/mapserver/msautotest/blob/master/renderers/marker_anchorpoint.map https://github.com/mapserver/msautotest/blob/master/renderers/expected/marker_anchorpoint.png
available from version 6.2 onwards. -- thomas On 1 April 2014 17:38, Dorian CONSTANT <dconst...@siig.fr> wrote: > Hello everyone, > > First, excuse me for my bad English. J > > > I have long identified a problem of rotation of symbols in MapServer when > these > symbols come from a TrueType font and they are configured as such in the > "SYMBOLS.SYM" > file. > > Example of symbols used in the crosswalks (the font file is attached to > this message) : > > > > SYMBOL > > NAME 'voirie_signal_horiz_ponct_pass_pieton' > > TYPE TRUETYPE > > FONT siig-voirie > > ANTIALIAS true > > CHARACTER "f" > > END > > > > The corresponding layer is defined as below under MapServer : > > > > LAYER > > NAME " Voirie_signal_horizontale_ponct" > > TYPE POINT > > STATUS DEFAULT > > Postgis > > PROCESSING "CLOSE_CONNECTION=DEFER" > > DATA "geom from voirie.v_voirie_signal_horiz_ponct USING SRID=2154 > USING UNIQUE oid" > > [QUERIABLE] > > Lambert 93 > > CLASSITEM "type_signal" > > UNITS meters > > SIZEUNITS pixels > > MAXSCALEDENOM 1010 > > CLASS > > NAME "Passages piétons" > > TEXT 'f' > > STYLE > > SYMBOL "voirie_signal_horiz_ponct_pass_pieton" > > COLOR 1 1 1 > > OUTLINECOLOR 255 255 255 > > SIZE 15 > > ANGLE45 > > END > > END > > END > > > > The problem is when a rotation is applied to the symbol, MapServer applies > rotation from the lower left point of the symbol and not from the central > attachment > point. > > > > Accordingly, would you know of a specific configuration to be done under > MapServer to ensure that it uses the hang central point symbols TRUETYPE > as pivot point and not the lower left point of the symbol ? > > > > Thank you in advance. > > > > ---------------------------------------------------------------------- > > *Dorian CONSTANT* – Responsable SIG > *SiiG* (*S*yndicat *I*ntercommunal d’*I*nformation *G*éographique) > > 1005 route de Vénéjan – 30200 Saint-Nazaire > > *Tél*: 04.66.90.58.00 – *Fax*: 04.66.82.98.35 – *Mail*: *dconst...@siig.fr > <dconst...@siig.fr>* – *Web*: http://www.siig.fr > > [image: Description : Description : Description : logo_siig2] > > *P* Avant d'imprimer, ayez une pensée pour notre environnement > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users >
<<inline: image029.jpg>>
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users