Opened 15 years ago

Last modified 14 years ago

#2837 assigned defect

Can't override 'bound' values via URL...

Reported by: sdlime Owned by: sdlime
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

Although you can change values for properties like label size or angle, you cannot do so if the property is bound to an attribute. Solution is to clear property binding before assigning the new value in this case.

Steve

Change History (3)

comment:1 by sdlime, 15 years ago

Status: newassigned

Solution is to do something like:

  if(label->bindings[MS_LABEL_BINDING_SIZE].item) {
    msFree(label->bindings[MS_LABEL_BINDING_SIZE].item);
    label->numbindings--;
  }

before processing the property. A simple helper function that takes a attributeBindingObj * and a int would work nicely.

E.g.:

removeBinding(attributeBindingObj *binding, int whichBinding);

See the removeBinding method in label.i or style.i.

Steve

comment:2 by sdlime, 15 years ago

Actually, create a msRemoveBinding() function in mapfile.c and use that everywhere... Will fix and then move to SWIG/MapScript and then PHP/MapScript components. No documentation changes necessary.

Steve

comment:3 by dmorissette, 14 years ago

Milestone: 5.6 release6.0 release
Note: See TracTickets for help on using tickets.