Opened 18 years ago
Last modified 13 years ago
#1688 closed defect
Auto Angle - Incorrectly rotated Labels — at Initial Version
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | 6.0 release |
Component: | Documentation - MapServer | Version: | 4.6 |
Severity: | normal | Keywords: | |
Cc: | sdlime, woodbri@…, chodgson@…, dmorissette |
Description
In each case where a label was angled incorrectly, it was angled incorrect by roughly +- 180°. Versions 4.6.2 is affected as well as the CVS head (feb. 24, 2006). The problem is with ANGLE AUTO. More precisely in msPolylineLabelPoint() in mapprimititve.c: if(p->line[i].point[j-1].y < p->line[i].point[j].y){ *angle = (270.0 - (MS_RAD_TO_DEG*theta)); // *angle = (90.0 - (MS_RAD_TO_DEG*theta));<-----------------BEFORE (WRONG) }else{ *angle = -(270.0 - (MS_RAD_TO_DEG*theta)); //*angle = -(90.0 - (MS_RAD_TO_DEG*theta));<-----------------BEFORE (WRONG)
Note:
See TracTickets
for help on using tickets.