Opened 20 years ago

Closed 20 years ago

#641 closed defect (fixed)

Nasty bug in labelcache

Reported by: bugzilla@… Owned by: sdlime
Priority: high Milestone: 4.4 release
Component: MapServer CGI Version: 4.0
Severity: normal Keywords:
Cc:

Description

I added a new layer to my map.  It is a points layer with wind data. I needed  
to draw arrows showing wind direction, this way: 
 
 
LAYER 
  NAME wind 
  DATA wind 
  TYPE POINT 
  PROJECTION "proj=utm" "zone=30"  END 
  STATUS DEFAULT 
  LABELANGLEITEM "DIR" 
 
  CLASS 
        TEXT '>' 
        LABEL 
                FONT "arial" 
                TYPE TRUETYPE 
                ANTIALIAS TRUE 
                COLOR 0 0 0 
                SIZE 40 
                ANGLE AUTO 
        END 
  END 
END 
 
About 50% of the times, cgi returns an invalid image, or a text/html white  
page. I tried to use different output formats (PNG, PNG24, JPEG), upgraded  
gd2 and freetype without success. 
 
When i added: 
   
LABELCACHE OFF 
 
Everything worked fine. 
 
Is it a bug? Was i doing something wrong? 
 
I am using this rpm's: 
 
mapserver-4.0-1mdk 
freetype-1.3.1-18mdk 
freetype2-2.1.3-12plf 
libgd2-2.0.22-1mdk 
libgdal0-1.1.9-2mdk

Attachments (1)

bug641.tgz (2.7 KB ) - added by bugzilla@… 20 years ago.
test data showing the bug

Download all attachments as: .zip

Change History (8)

comment:1 by sdlime, 20 years ago

I would much rather debug a new version. Have you tried the 4.2 beta?

comment:2 by bugzilla@…, 20 years ago

I can try 4.2 if there is an rpm valid for Mandrake 9.1, sorry. 
 

by bugzilla@…, 20 years ago

Attachment: bug641.tgz added

test data showing the bug

comment:3 by bugzilla@…, 20 years ago

 
I have found that adding a "COLOR" tag to the class, solves the problem!! 
 
CLASS  
-->        COLOR 0 0 0 
        TEXT '>'  
        LABEL  
                FONT "arial"  
                TYPE TRUETYPE  
                ANTIALIAS TRUE  
                COLOR 0 0 0  
                SIZE 40  
                ANGLE AUTO  
        END  
  END  
 
Now i can enable label cache again. :-) 
 
It is still a bug, isn't it? 
 
 

comment:4 by sdlime, 20 years ago

It is until I get a chance to investigate!

Steve

comment:5 by dmorissette, 20 years ago

Cc: morissette@… added
Milestone: 4.4 release

comment:6 by bugzilla@…, 20 years ago

I have finally compiled mapserver 4.2 and the bug dissapeared. 
 
 

comment:7 by sdlime, 20 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.