Opened 14 years ago

Closed 13 years ago

#3426 closed defect (fixed)

symbolObj.angle is declared as double in MapScript Dotnet

Reported by: bveldkamp Owned by: jmckenna
Priority: normal Milestone:
Component: Documentation - MapServer Version: unspecified
Severity: normal Keywords:
Cc: havatv

Description

In MapScript C#, the angle property of the symbolObj class is defined as a double, but since MS 5.0 it can also be a string that references a fieldname. See http://mapserver.org/mapfile/style.html

I'm using FWTools 2.4.7 which contains MS 5.7-dev

Change History (4)

comment:1 by tamas, 14 years ago

This is by design. To set up bindings you must use setBinding/getBinding/removeBinding methods of styleObj/labelObj. For more info see: http://mapserver.org/development/rfc/ms-rfc-19.html

comment:2 by bveldkamp, 14 years ago

Thanks, I had overlooked that. This issue can be closed AFAIC.

comment:3 by tamas, 14 years ago

Component: MapScript-C#MapServer Documentation
Owner: changed from tamas to jmckenna

It's kinda like a documentation issue, reassigned.

comment:4 by havatv, 13 years ago

Cc: havatv added
Resolution: fixed
Status: newclosed

This is not so easy to document. I have added examples in the swig mapscript document for setBinding (both for labelobj and styleobj), and explained how the constants are named (MS_STYLE_BINDING_[attribute name] / MS_LABEL_BINDING_[attribute name]). Done for 6.0 and trunk in r12584 (there are also a lot of formatting changes there, sorry...).

Closing, but the mapscript documentation should be improved by someone who is more familiar with mapscript.

Note: See TracTickets for help on using tickets.