[Mapserver-dev] LABEL Test, Errors Not Returned

Frank Warmerdam warmerdam at pobox.com
Fri May 30 15:39:09 EDT 2003


Steve, or anyone,

One map in my autotest suite (msautotest/misc/label_pc256.map) uses the
following definition but when I run it now I get no output (and no error).

   LAYER
     NAME fonttest
     TYPE POINT
     STATUS DEFAULT
     FEATURE
       POINTS 450000 6500000 END
       TEXT "BIG_AND_small test"
     END
     CLASS
       LABEL
         COLOR 0 0 0
#       BACKGROUNDCOLOR 200 200 100
         FONT lucida
         TYPE truetype
         SIZE 20
       END
     END # CLASS
   END

Tracking down inside the code it seems the style structure is
uninitialized in msGetMarkerSize() at this test:

   if(style->symbol > symbolset->numsymbols || style->symbol < 0) return(MS_FAILURE);

(gdb) p *style
$7 = {color = {pen = 1108521444, red = 1108521444, green = 16, blue = 17},
   backgroundcolor = {pen = 135193248, red = 135193296, green = 0, blue = 17},
   outlinecolor = {pen = 4610119, red = 1108521444, green = 16, blue = 81},
   symbol = 1598311748, symbolname = 0x41455243 "", size = 1313818964,
   sizescaled = 1096040772, minsize = 1162893652, maxsize = 2034384211,
   offsetx = 1428186484, offsety = 829713993, antialias = 1850286134}

This is a clean build from CVS with gd-2.0.12.  Have requirements on the
LAYER syntax changed in the last month or two since I last ran the test
suite?

Also, I see that SUPPORTS=TTF no longer exists.  Is SUPPORTS=FREETYPE
equivelent?  I check these tags in my autotest to decide which tests should
be run.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the mapserver-dev mailing list