<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
<p class="MsoNormal"><span style="">List,<br></span></p>

<p class="MsoNormal"><span style="">I’ve got a
question about rotating (with angle/angleitem) a truetype font symbol.</span></p>



<p class="MsoNormal"><span style="">I’ve
created a layer that shows bridges etc. of roads. I’m using a font that has a ‘bridge-symbol’.
The direction of the nearest road in angles is stored in a attribute of the bridges-data.
It works fine with pixmap symbols. When using truetype font symbols and the
angle is 0 it also works fine. But when the angle is getting bigger the symbol deviates
more from the real point. The symbol is rotated fine. I think this has to do
with the point of rotation of the truetype symbol. In pixmap’s the point of
rotation is the center that’s why it works fine. I’m using a truetype font
symbol because I want the symbols fully transparent. When the pixmap symbol is
rotated it isn’t transparent anymore. I thought this was a good solution….. Can
anyone help? My ‘code’ in the mapfile: <br></span></p>











































































<p class="MsoNormal"><span style="">LAYER<br><span style="">            </span>….<br><span style="">            </span>TYPE POINT<br><span style="">            </span>TRANSPARENCY alpha<br><span style="">            </span>CLASS<br><span style="">                        </span>NAME "bridge"<br><span style="">                        </span>STYLE<br><span style="">                                   </span>#Used in
older versions: ANGLEITEM “nearest_road_direction”<span style="">      <br>                                   </span>ANGLE [nearest_road_direction]<br><span style="">                                   </span>COLOR 0 255 0<br><span style="">                                   </span>SYMBOL "bridge"<br><span style="">                                   </span>SIZE 10<br><span style="">            </span><span style="">            </span>END<br><span style="">                        </span>STYLE<br><span style="">                                   </span>COLOR 255 0 0<br><span style="">                                   </span>SYMBOL
"point1"<br><span style="">                                   </span>SIZE 10<br><span style="">                        </span>END<br><span style="">            </span>END<br>END<br>SYMBOL<br><span style="">            </span>NAME "bridge"<br><span style="">            </span>TYPE TRUETYPE<br><span style="">            </span>FONT symbolfont<br><span style="">            </span>FILLED TRUE<br><span style="">            </span>CHARACTER "&#68;"<br><span style="">            </span>ANTIALIAS TRUE<br>END<br>SYMBOL<br><span style="">            </span>NAME "point1"<br><span style="">            </span>TYPE ellipse<br><span style="">            </span>points<br><span style="">                        </span>1 1<br><span style="">            </span>end<br><span style="">            </span>FILLED true<br>END<br> <br>So when the
angle is bigger then 0 the symbol ‘point1’ and the center of the symbol ‘bridge’
is not shown on the same point. When angle equals 0 it is.</span></p>The 'only' thing i want to do is rotate fully transparent symbols at a point...



<p class="MsoNormal"><span style="">Tia,</span></p>

Roy Braam<br>B3partners BV<br><br>Met vriendelijke groet,<br><br>Roy Braam<br>B3partners BV<br>030 214 2082</body></html>