Opened 17 years ago
Closed 13 years ago
#2020 closed defect (duplicate)
FOLLOW ANGLE label property
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | 4.10 |
Severity: | normal | Keywords: | |
Cc: | jdenisgiguere@…, jmckenna@… |
Description (last modified by )
For FOLLOW ANGLE label property, when the line is too windy, the letters in the label are all garbled (either missing or/and in different order).
Attachments (2)
Change History (9)
by , 17 years ago
comment:1 by , 17 years ago
It would be helpful to see some data samples too. It's almost impossible to debug without test cases. Steve
comment:2 by , 17 years ago
(From update of attachment 623) Hi Steve I attached a shape data sample like you request for debug Bye Walter
comment:3 by , 17 years ago
Cc: | added |
---|
If data are stored in a database, the following dirty function can temporarily fix the problem. Function is in PostgreSQL syntax: -- Patch for Mapserver bug number #2020 -- Strange behavior of short label when ANGLE is set to FOLLOW CREATE OR REPLACE FUNCTION pad(cString TEXT) RETURNS TEXT AS $$ BEGIN RETURN cString || repeat(' ', 4 - char_length(cString)); END; $$ LANGUAGE plpgsql;
comment:4 by , 17 years ago
Description: | modified (diff) |
---|---|
Status: | new → assigned |
Has anyone tried the padding fix suggested? I don't think the fix for this will be trivial otherwise as it will involve extensions to the underlying algorithm.
Steve
comment:5 by , 17 years ago
Component: | MapScript → MapServer C Library |
---|---|
Priority: | high → normal |
comment:6 by , 17 years ago
Cc: | added |
---|
comment:7 by , 13 years ago
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
This has been fixed (by skipping bad labels) in ticket #3523. I'm gonna call this one a duplicate. -Steve
Note:
See TracTickets
for help on using tickets.
Bug example