[mapserver-users] Mapscript BINDING constants

Rob gis at vanbooth.com
Mon Jun 16 08:20:17 EDT 2008


Hi

I'm trying to migrate from 4.8.6 to 5.0.2 and have a query regarding
Mapscript constants.

Given the change from LABELANGLEITEM to a binding on the Label, I'm
struggling to see how this would work in Mapscript/Java.

If I understand it correctly (and I'm not a Java developer by any
means) to replace

LABEL
     ANGLE [ATTRIBUTE]
     ....
END


I need a line like

labelObj.setBinding(MS_LABEL_BINDING_ANGLE, "ATTRIBUTE");

However, there doesnt seem to be anything defining the
MS_LABEL_BINDING_ANGLE constant anywhere for me to compile against.
Do I need to build my own constants?

MTIA

Rob


More information about the mapserver-users mailing list