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: [email protected] [mailto:[email protected]] On Behalf Of Jez Walters Sent: Wednesday, July 14, 2010 10:42 AM To: [email protected] 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 [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
