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)" <[email protected]> wrote: > I believe it's done with the setBinding method. Labels and styles > have that method. > > Steve > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Fergus > McDonald Sent: Friday, January 16, 2015 8:54 AM To: > [email protected] 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 [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
