[mapserver-dev] Support for the AGG renderer in drawLegendIcon.

Tamas Szekeres szekerest at gmail.com
Thu Aug 14 10:29:47 EDT 2008


It's already implemented in the trunk I've just missed it, because
I've been testig with the 5-0 branch.

Best regards,

Tamas


2008/8/14 Daniel Morissette <dmorissette at mapgears.com>:
> My preference would also be to make whatever change is required to move that
> down inside msDrawLegendIcon(). I wonder why that was not dont in the first
> place, perhaps Thomas, or whoever wrote msDrawLegendIconAGG() can comment on
> that before we make the final decision?
>
> Daniel
>
>
> Tamas Szekeres wrote:
>>
>> Hi All,
>>
>> I'd like to add AGG renderer support when creating the legend icons
>> from the mapscript interface. The corresponding function in class.i
>> would look something like:
>>
>> int drawLegendIcon(mapObj *map, layerObj *layer, int width, int
>> height, imageObj *dstImage, int dstX, int dstY) {
>>      if(map->outputformat->renderer == MS_RENDER_WITH_AGG)
>>          return msDrawLegendIconAGG(map, layer, self, width, height,
>> dstImage, dstX, dstY);
>>      else
>>          return msDrawLegendIcon(map, layer, self, width, height,
>> dstImage->img.gd, dstX, dstY);
>>  }
>>
>> Any objections to apply such change?
>>
>> I'd personally prefer including this stuff in the msDrawLegendIcon
>> itself, however if would require to change other portions of the code
>> like msDrawLegend in the mapserver core, and function above should
>> pass dstImage instead of dstImage->img.gd.
>>
>> Best regards,
>>
>> Tamas
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>
> --
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>


More information about the mapserver-dev mailing list