[Mapserver-dev] LABEL Test, Errors Not Returned
Steve Lime
steve.lime at dnr.state.mn.us
Mon Jun 2 21:06:59 EDT 2003
Frank: Ok, this map file should have thrown an error before and should
now as well. Basically you're drawing a point with no color. That's not
allowed. If there were a color then a style would've been initialized
and all would be well. We need code to check for absence of styles. I
don't think that's as simple as it sounds because of the way MapScript
figures in. I'll file as a bug. In the meantime just add "COLOR 0 0 0"
to your test case CLASS object and it should run.
Steve
>>> Frank Warmerdam <warmerdam at pobox.com> 05/30/03 2:39 PM >>>
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
_______________________________________________
Mapserver-dev mailing list
Mapserver-dev at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
More information about the mapserver-dev
mailing list