Skip to content
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

Closed
sdlime opened this issue May 8, 2012 · 16 comments
Closed

Swig MapScript for Multi-Label Support #4310

sdlime opened this issue May 8, 2012 · 16 comments

Comments

@sdlime
Copy link
Member

sdlime commented May 8, 2012

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

@sdlime
Copy link
Member Author

sdlime commented May 11, 2012

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

@szekerest
Copy link
Member

This change is required to update the object relationship for the c# garbage collector. Modified the code accordingly.

@tbonfort
Copy link
Member

@aboudreault , have the corresponding functions been added to php mapscript ?

@aboudreault
Copy link
Member

not yet. another thing to add to my todo list.

@aboudreault
Copy link
Member

In my commit:

  • Fix memory leak in msAddLabelToClass()
  • Add addLabel/removeLabel/getLabel in classObj of PHP MapScript
  • Add numlabels property in classObj in PHP Mapsciprt
  • Add labelObj capability to be instantiated. (was always embedded before) (PHP and SWIG)

I think we can close this ticket?

@sdlime
Copy link
Member Author

sdlime commented May 24, 2012

I can try to add to PHP. It was my contract responsibility...

On Wed, May 23, 2012 at 10:11 AM, Thomas Bonfort
reply@reply.github.com
wrote:

@aboudreault , have the corresponding functions been added to php mapscript ?


Reply to this email directly or view it on GitHub:
#4310 (comment)

@aboudreault
Copy link
Member

it's done steve. Documentation is missing though...

@sdlime
Copy link
Member Author

sdlime commented May 26, 2012

Thanks man. Let's leave open untils docs get the update. Steve

havatv pushed a commit to MapServer/MapServer-documentation that referenced this issue Jul 25, 2012
@havatv
Copy link

havatv commented Jul 25, 2012

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.

@aboudreault
Copy link
Member

Thanks havatv!

@szekerest
Copy link
Member

labelObj.expression a labelObj.text is not exposed to mapscript. Also missing from the mapfile/mapscript documentation

@havatv
Copy link

havatv commented Apr 3, 2013

@tbonfort, should something be done also for PHP mapscript? I could not find settext and setexpression in the 6.2 PHP code.

mkofahl pushed a commit to faegi/mapserver that referenced this issue Apr 9, 2013
@jmckenna
Copy link
Member

Reopening. LabelObj text and expression params are not exposed yet in PHP MapScript.

@jmckenna jmckenna reopened this Apr 15, 2013
@tbonfort
Copy link
Member

not sure if this can be ready for 6.2.1 . @aboudreault ?

@aboudreault
Copy link
Member

will do tomorrow morning

@aboudreault
Copy link
Member

Fixed in branch-6-2 and master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants