Skip to content

Disambiguate string from expression #2424

Closed

Description

@springmeyer

All std::string type symbolizer properties currently fail when used as expressions.

The only one I have noticed so far is wrap-character but others may exist. What I think is happening is that something like wrap-character="[this_field]" does not get parsed as an expression but rather as a string. Then when the property is evaluated here instead of the value of this_field being returned the literal string [this_field] is returned and the wrap_char_ ends up being [. This must be because the property is stored as a string and not an expression such that the value is not evaluated and rather just passed through at https://github.com/mapnik/mapnik/blob/master/include/mapnik/symbolizer.hpp#L455-L458

Activity

  1. added this to the milestone on Sep 19, 2014
  2. springmeyer commented on Sep 20, 2014

    @springmeyer
    MemberAuthor

    The below test now fails after e7e235a

    python tests/visual_tests/test.py text-line-wrap
    
  3. artemp commented on Sep 22, 2014

    @artemp
    Member
  4. springmeyer commented on Sep 22, 2014

    @springmeyer
    MemberAuthor

    @artemp excellent, test is now passing :) Thanks!

  5. springmeyer commented on Sep 22, 2014

    @springmeyer
    MemberAuthor

    followup/need for more tests at #2427

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions