[MapServer-users] LABEL wrap, maxlength oddity
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Sep 16 13:57:45 PDT 2024
Hi Scott!
This might be from our more strict checks in MapServer >= 8. I tried
the msautotest for wrap (
https://github.com/MapServer/MapServer/blob/main/msautotest/renderers/labels-wrap.map
), and if I set "MAXLENGTH 0" I get your error (I do see in the docs a
hidden line of "must be greater than zero", which is odd because above
that in the docs it explains the case for "maxlength = 0").
If I comment out the MAXLENGTH parameter completely, it wraps at the "|"
character as expected (please also try that for your mapfile - does that
solve it?).
In other words, maybe I just need to update the docs, to not set
maxlength, if you want to wrap at the wrap character.
Thoughts?
thanks,
-jeff
--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/
On 2024-09-16 3:25 p.m., Scott via MapServer-users wrote:
> Greetings!
>
> So I've made the leap from 7.6 to 8.2.2. Other than wrangling with the
> new .conf file setup, it's been fairly painless. I have .map files going
> back 13 years.
>
> Here's a LABEL snippet that worked pre 8:
>
> LABEL
> MAXLENGTH 0
> WRAP "|"
> ...
> END
>
> Doc's say (paraphrase), if MAXLENGTH is 0 WRAP at (char). Which has
> always worked.
>
> Now, I get the error:
> getInteger(): Symbol definition error. Parsing error near (0):(line 268)
>
> If I change MAXLENGTH 1, it works.
>
> Thanks for all your hard work MapServer devs!
>
> Scott
>
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list