[Mapserver-users] Rotating text problem relating to OGR and Dgn File

Frank Warmerdam warmerdam at pobox.com
Wed Mar 17 13:55:08 EST 2004


Lee, Han wrote:
> I am trying to display text from DGN file using OGR.
> I am able to display the text but the text is not rotated.
...
> 
> I tried many different formats (ArcInfo coverage, mif, tab files) to rotate
> the text,
> but that didn't work.
> I thought that STYLEITEM "AUTO" should use the angel value to rotate the
> text.
> 
> Any ideas?

Han,

First, I believe you need to use FreeType2 support with outline fonts.
I can't remember the details of this (been a while) but the default font
mechanism in MapServer doesn't support rotation.

However, it is more likely that the angle is just not being carried through
in the autostyling.  I would encourage you to use ogrinfo to dump the features
in the layer in question and look at the style strings to see if the rotation
angles are coming through.  If not, then the problem is at my end and you could
file a bug in the GDAL/OGR Bugzilla.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the mapserver-users mailing list