Opened 17 years ago

Closed 17 years ago

#2223 closed defect (fixed)

ANGLE FOLLOW for labels doesn't handle short strings properly

Reported by: cnieman Owned by: sdlime
Priority: normal Milestone: 5.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description

I have noticed that using ANGLE FOLLOW for labels along lines when the text is 3 or fewer characters long leads to incorrect character orientation.

Attachments (1)

angleFollow.zip (49.8 KB ) - added by cnieman 17 years ago.
contains test case displaying the problem.

Download all attachments as: .zip

Change History (6)

by cnieman, 17 years ago

Attachment: angleFollow.zip added

contains test case displaying the problem.

comment:1 by sdlime, 17 years ago

Milestone: 5.0 release
Status: newassigned

This is a known bug (see #2020) that I hope to fix before 5.0 final. The path following code is a bit hard to understand though which is why it's taking so long. The problem has to do with the smoothing kernel that is being applied.

Steve

comment:2 by hobu, 17 years ago

#2221 is also the same thing...

comment:3 by sdlime, 17 years ago

Actually #2221 is a duplicate of #2020. This one is specific to 3 or two characters. They are different problems and look differently to users.

Steve

comment:4 by cnieman, 17 years ago

I've tested the problem thoroughly and I can confirm that it is indeed specific to 3 or fewer characters. If I pad the beginning of the string with spaces so that there are at least 4 characters the labels follow the line properly.

comment:5 by sdlime, 17 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r6775.

Steve

Note: See TracTickets for help on using tickets.