[mapserver-users] UK Ordnance Survey MasterMap Cartographic Text orientation display problem

Jez Walters jez.walters at ipl.com
Wed Jul 14 11:42:10 EDT 2010


I'm trying to use MapServer to display UK Ordnance Survey MasterMap vector
data, but I've been experiencing problems when it comes to Cartographic Text
orientation.

The text angle is specifed in the GML as an integer representing 10ths of a
degree, rather than as a floating point number.  In order to overcome this
I've been pre-processing the OS GML using awk, to divide the text
orientation value by 10.

I'm converting the pre-processed GML to ESRI Shapefiles before displaying
the map using MapServer.  As an example, here's a snipet of my Mapfile:

...
CLASS
  NAME "Tidal Water"
  EXPRESSION ("[descriptiv]" == "Tidal Water")
  STYLE
  END
  LABEL
    TYPE truetype
    FONT Arial
    SIZE 7
    ANTIALIAS true
    COLOR 0 153 255
    POSITION cc
    ANGLE [orientatio]
  END
END
...

Am I on the right track for rescaling the orientation value, or is there a
better way of doing this?
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/UK-Ordnance-Survey-MasterMap-Cartographic-Text-orientation-display-problem-tp5293281p5293281.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list