[mapserver-dev] Problem with label angle since v5.0
Steve.Lime at dnr.state.mn.us
Wed Jun 18 02:29:17 EDT 2008
As it sits if you set a binding programmatically, like so:
or in a map file there is no way to get at the column name. We'd need a getBinding method in MapScript so you could do something like:
$item = $label->getBinding(MS_LABEL_BINDING_ANGLE);
and $item would contain the string 'myitem'. This would work for you, correct?
>>> tommyr <nerkeilenemon at gmail.com> 06/13/08 1:47 AM >>>
I still have my problem, i can't solve it.
Did you find a solution ?
Steve Lime wrote:
> Ah, I get it. Let me ponder that and get back to you.
>>>> On 5/23/2008 at 2:22 AM, in message <17419520.post at talk.nabble.com>,
> <nerkeilenemon at gmail.com> wrote:
>> In fact I want to get back the value of the angle of the label i mean
>> this :
>> angle [THIS].
>> I set a value into it with $oLabelObj->setBinding(MS_LABEL_BINDING_ANGLE,
>> 'THIS'), and then I wan't to get the value of the angle I put to the
>> How can I do this ?
>> Thank you.
>> Steve Lime wrote:
>>> Hi Tommy: I guess I'm not clear on what you're after. Bindings are
>>> evaluated on a feature by feature basis
>>> during rendering so the value for the label will change repeatedly. In
>>> what context would you want to see
>>> the angle?
>>>>>> On 5/22/2008 at 10:42 AM, in message
>>> <7b2d12b90805220842wb1c7c9dm6d9065040f1d8709 at mail.gmail.com>, "Tommy
>>> <nerkeilenemon at gmail.com> wrote:
>>>> I have a problem since the release of Map Server 5. I now set the angle
>>>> my LabelObj with $oLabelObj->setBinding(MS_LABEL_BINDING_ANGLE, ...) .
>>>> Nevertheless, I can't get the value of my LabelObj, because
>>>> $oLabelObj->angle is a double, with value = 0, and there is no method
>>>> getBinding(). Is there a way to get the value of the angle string in my
>>>> label ? A method, a void, or anything else ?
>>>> Thank You.
>>> mapserver-dev mailing list
>>> mapserver-dev at lists.osgeo.org
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
View this message in context: http://www.nabble.com/Problem-with-label-angle-since-v5.0-tp17407112p17816191.html
Sent from the Mapserver - Dev mailing list archive at Nabble.com.
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
More information about the mapserver-dev