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

Fergus McDonald mapserver at schartz.net
Thu Jan 22 06:16:10 PST 2015


angle is mentioned as an attribute here, with a "TODO"

http://mapserver.org/mapscript/mapscript.html#labelobj

It doesn't specially say there is a setAngle() method, but you can see
is exists in the generated code.

On Thu, 22 Jan 2015 12:56:00 +0100
Håvard Tveite <havard.tveite at nmbu.no> wrote:

> Hi,
> 
> I am not able to find anything about labelObj.setAngle() in
> the current Mapserver docs.  Could you point me in the right
> direction?
> 
> Håvard
> 
> On 2015-01-18 16:27, Fergus McDonald wrote:
> > 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
> >
> > _______________________________________________
> > 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