MapServer / MapServer-import

3 stars 2 forks source link

FOLLOW ANGLE label property #2020

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: lorenzetti@faunalia.it Date: 2007/01/31 - 09:29

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).
tbonfort commented 12 years ago

Author: sdlime Date: 2007/02/01 - 21:17

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

Steve
tbonfort commented 12 years ago

Author: lorenzetti@faunalia.it Date: 2007/02/02 - 14:43

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

Bye
Walter
tbonfort commented 12 years ago

Author: jdenisgiguere@fastmail.fm Date: 2007/04/02 - 23:37

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;
tbonfort commented 12 years ago

Author: sdlime Date: 2007/06/08 - 19:33 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

tbonfort commented 12 years ago

Author: sdlime Date: 2011/02/15 - 15:04 This has been fixed (by skipping bad labels) in ticket #3523. I'm gonna call this one a duplicate. -Steve