You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I am trying to print out the set values of various symbolizers and am having a hard time with getting enum as string from the TextSymbolizer. I would appreciate a nudge in the right direction as I have read through the mapnik code but I think I still don't fully understand this.
When I try getting a value that has previously been set in TextSymbolizer and label_placement, the resulting enum is always the default one (point), no matter to what I set it beforehand.
Setting it up:
The above code prints "point", even though I have set the value to "line" before. I assume the value is set correctly, since it renders the correct placement in the output file.
I also tried getting the value through the text_placements_ptr, but I am not sure how to convert the symbolizer_base::value_type into anything useful.
I had no trouble getting and printing the enum from MarkersSymbolizer like so :
Hi!
I am trying to print out the set values of various symbolizers and am having a hard time with getting enum as string from the TextSymbolizer. I would appreciate a nudge in the right direction as I have read through the mapnik code but I think I still don't fully understand this.
When I try getting a value that has previously been set in TextSymbolizer and label_placement, the resulting enum is always the default one (point), no matter to what I set it beforehand.
Setting it up:
Trying to get the set value back:
The above code prints "point", even though I have set the value to "line" before. I assume the value is set correctly, since it renders the correct placement in the output file.
I also tried getting the value through the text_placements_ptr, but I am not sure how to convert the symbolizer_base::value_type into anything useful.
I had no trouble getting and printing the enum from MarkersSymbolizer like so :
Any help with this would be much appreciated, thank you!
The text was updated successfully, but these errors were encountered: