Skip to content

handle LABEL MAXLENGTH 0 or -1 (RFC 40 functionality) #7160

Open

Description

@jmckenna
  • reported by @PostholerCom (thread)
  • with MapServer 8+, the former functionality of special results for LABEL (WRAP) MAXLENGTH 0 or -1 (see RFC 40) returns an error
    getInteger(): Symbol definition error. Parsing error near (-1)
    due to new checks placed in MapServer 8, to force values of MAXLENGTH to be greater than zero
  • likely the check for MAXLENGTH should be removed, to re-enable the full RFC 40 functionality

(for fast local testing with MapServer 8, use the related msautotest labels-wrap.map)

Thoughts?

Activity

  1. jratike80 commented on Sep 17, 2024

    @jratike80

    Could it be MAXLENGTH >= -1?

  2. jmckenna commented on Sep 17, 2024

    @jmckenna
    MemberAuthor

    @jratike80 yes that would make sense

  3. lkrumov commented on Oct 31, 2024

    @lkrumov

    Could you please update the "MapServer Migration Guide" for the change that MAXLENGTH > 0?

  4. added this to the 8.4.0 Release milestone on Oct 31, 2024
  5. jmckenna commented on Dec 14, 2024

    @jmckenna
    MemberAuthor

    I've tried to document this in the MAXLENGTH section of the website, see: https://mapserver.org/mapfile/label.html

    I also added an example (and output label image) to that section.

    Hope it helps others.

  6. jmckenna commented on Dec 14, 2024

    @jmckenna
    MemberAuthor

    @lkrumov I also added a note about this in the Migration Guide, thanks for that nudge.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions