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

Tamas Szekeres szekerest at gmail.com
Thu Aug 14 06:52:30 EDT 2008


Steve,

I've noticed the problem has already been addressed in
http://trac.osgeo.org/mapserver/changeset/6934

Tamas


2008/8/14 Steve Lime <Steve.Lime at dnr.state.mn.us>:
> Seems ok to me as we can always fix the internals later.
>
> Steve
>
>>>> "Tamas Szekeres" <szekerest at gmail.com> 08/13/08 5:24 PM >>>
> 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
>
>


More information about the mapserver-dev mailing list