New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swig MapScript for Multi-Label Support #4310
Comments
I added three new methods for a classObj in SWIG MapScript: getLabel, addLabel, removeLabel. They mirror the style support except that order is not important for labels so addLabel doesn't take an index and just adds the new label to the end. These are in the master. Tamas, in class.i there were some C-Sharp specific directives around insertStyle that I wasn't sure if they applied here or not. Can you comment? Steve |
This change is required to update the object relationship for the c# garbage collector. Modified the code accordingly. |
@aboudreault , have the corresponding functions been added to php mapscript ? |
not yet. another thing to add to my todo list. |
In my commit:
I think we can close this ticket? |
I can try to add to PHP. It was my contract responsibility... On Wed, May 23, 2012 at 10:11 AM, Thomas Bonfort
|
it's done steve. Documentation is missing though... |
Thanks man. Let's leave open untils docs get the update. Steve |
I have updated mapscript documentation (mapscript/mapscript.txt and mapscript/php/index.txt) - MapServer/MapServer-documentation@ae0a68a. Properties for class: numlabels added, label marked as removed. Methods for class: addLabel, getLabel, removeLabel. I have also updated two figures to indicate that multiple labels can be used for class. If the update is OK, I hope that @aboudreault or @sdlime can close this bug. I can't. |
Thanks havatv! |
labelObj.expression a labelObj.text is not exposed to mapscript. Also missing from the mapfile/mapscript documentation |
@tbonfort, should something be done also for PHP mapscript? I could not find settext and setexpression in the 6.2 PHP code. |
Reopening. LabelObj text and expression params are not exposed yet in PHP MapScript. |
not sure if this can be ready for 6.2.1 . @aboudreault ? |
will do tomorrow morning |
Fixed in branch-6-2 and master. |
Need to add methods for manipulating multiple label objects in the context of classObj's. Need to implement the RFC 24 reference counting as well (necessary attributes have been added to appropriate structures). styleObj support should serve as a pattern.
Steve
The text was updated successfully, but these errors were encountered: