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

Fergus McDonald mapserver at schartz.net
Sun Jan 18 07:27:26 PST 2015


Thanks Steve.. that was it. I was able to set it using (in Java):

setBinding(MS_LABEL_BINDING_ENUM.MS_LABEL_BINDING_ANGLE.swigValue(),
 strAngleAttribute);

It would be good maybe if there was a hint about this in the docs for
labelObj.setAngle()


On Fri, 16 Jan 2015 22:06:54 +0000
"Lime, Steve D (MNIT)" <Steve.Lime at state.mn.us> wrote:

> 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