[mapserver-users] UK Ordnance Survey MasterMap Cartographic Text orientation display problem
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Mon Jul 26 13:19:33 PDT 2010
Don't recall seeing a reply to the list so just in case. Preprocessing is the way to go if you're using shapefiles. In PostGIS you
could apply the correction on-the-fly.
One other comment, that may or may not be relevant without seeing the whole mapfile. You'll find that string based expressions will
execute faster that the logical variety:
e.g.:
CLASSITEM ' descriptiv'
CLASS
NAME 'Tidal Water'
EXPRESSION 'Tidal Water'
...
END
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jez Walters
Sent: Wednesday, July 14, 2010 10:42 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] UK Ordnance Survey MasterMap Cartographic Text orientation display problem
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.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list