[mapserver-users] UK Ordnance Survey MasterMap Cartographic
Text orientation display problem
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Mon Jul 26 16:19:33 EDT 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:
CLASSITEM ' descriptiv'
NAME 'Tidal Water'
EXPRESSION 'Tidal Water'
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
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:
NAME "Tidal Water"
EXPRESSION ("[descriptiv]" == "Tidal Water")
COLOR 0 153 255
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
More information about the mapserver-users