[mapserver-users] Text orientation problem

thomas bonfort thomas.bonfort at gmail.com
Wed Jul 21 04:35:57 PDT 2010


Jez,
There's to my knowledge no way to do this directly in your mapfile, so
your approach seems correct. If your data resides in a postgis
database you could also do this in your DATA statement:

DATA "the_geom from (select id,the_geom,angle*10 as angle from
mytable) as foo using unique id using srid=xxxx"
...
LABEL
   ANGLE [angle]
   ...
END

regards,
thomas

On Wed, Jul 21, 2010 at 13:32, Jez Walters <jez.walters at ipl.com> wrote:
>
> I'm not sure if I posted this correctly last time, so I'm trying again -
> hopefully I'll get some feedback this time!  :-)
>
> I'm using MapServer to display UK Ordnance Survey MasterMap vector data, but
> I've been experiencing problems when it comes to text orientation (in the
> Cartographic Text layer).
>
> The text angle is specifed in the OS GML as an integer representing 10ths of
> a degree, rather than as a floating point number (as required by MapServer).
> In order to overcome this I've been pre-processing the GML using awk, to
> divide the text orientation value by 10.
>
> Is this the best approach for rescaling the orientation value, or can this
> be performed somehow "on the fly" by MapServer?
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Text-orientation-problem-tp5320710p5320710.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