[mapserver-users] Set LABELANGLE [attribute] via Mapscript (6.41)

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Fri Jan 16 14:06:54 PST 2015


I believe it's done with the setBinding method. Labels and styles have that method.

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fergus McDonald
Sent: Friday, January 16, 2015 8:54 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Set LABELANGLE [attribute] via Mapscript (6.41)

I might be missing something in the docs, but how does one set the labelangle for a mapscript labelObj to an attribute name, the equivalent of ANGLE [attribute] in the LABEL declaration of the MAP file?

The angle property of labelObj can only be a float value.

The layer object has a labelangleitem property mentioned in the main docs, but the "PHP Mapscript Migration Guide" says that this property was removed as of version 6.
_______________________________________________
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