Opened 13 years ago

Closed 9 years ago

#2020 closed defect (duplicate)

FOLLOW ANGLE label property

Reported by: lorenzetti@… Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version: 4.10
Severity: normal Keywords:
Cc: jdenisgiguere@…, jmckenna@…

Description (last modified by sdlime)

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)

shot.jpg (19.6 KB) - added by lorenzetti@… 13 years ago.
Bug example
data_sample.tar.gz (40.3 KB) - added by lorenzetti@… 13 years ago.
Shape data sample for debug

Download all attachments as: .zip

Change History (9)

Changed 13 years ago by lorenzetti@…

Attachment: shot.jpg added

Bug example

comment:1 Changed 13 years ago by sdlime

It would be helpful to see some data samples too. It's almost impossible to 
debug without test cases.

Steve

Changed 13 years ago by lorenzetti@…

Attachment: data_sample.tar.gz added

Shape data sample for debug

comment:2 Changed 13 years ago by lorenzetti@…

(From update of attachment 623)
Hi Steve I attached a shape data sample like you request for debug

Bye
Walter

comment:3 Changed 13 years ago by jdenisgiguere@…

Cc: jdenisgiguere@… 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 Changed 13 years ago by sdlime

Description: modified (diff)
Status: newassigned

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 Changed 13 years ago by sdlime

Component: MapScriptMapServer C Library
Priority: highnormal

comment:6 Changed 12 years ago by jmckenna

Cc: jmckenna@… added

comment:7 Changed 9 years ago by sdlime

Resolution: duplicate
Status: assignedclosed

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.