# # Tests layering a layer with transparency on a layer with 256 colors already. # This is intended to address case where colors are exausted before a # transparent color can be allocated. # # NOTE: with resampling. # # ISSUE: The resulting image has the grid drawn in a grey color instead of # the natural red. This is because the colormap is full by the time # we get to allocating a color for the grid. This is an expected # "error" in the results. # # UPDATE: Now mapdrawgdal.c constructs a colortable for greyscale images # with only 128 entries instead of 256 so the "overload" no longer # happens. Preserve test with new results for posterity. # # REQUIRES: SUPPORTS=PROJ # # MAP NAME TEST STATUS ON SIZE 400 300 EXTENT 0.5 0.5 399.5 299.5 IMAGECOLOR 255 255 0 PROJECTION "proj=utm" "zone=12" "datum=WGS84" END IMAGETYPE png8_t OUTPUTFORMAT NAME png8_t DRIVER "GD/PNG" IMAGEMODE PC256 TRANSPARENT OFF END LAYER NAME grey TYPE raster STATUS default DATA data/grey.tif PROJECTION "proj=utm" "zone=12" "ellps=WGS84" "towgs84=1,0,0" END END LAYER NAME grid1 TYPE raster STATUS default DATA data/grid.gif PROJECTION "proj=utm" "zone=12" "ellps=WGS84" "towgs84=1,0,0" END END END # of map file