[mapserver-dev] Rendering a circle with the specified size as the
default symbol
thomas bonfort
thomas.bonfort at gmail.com
Thu Feb 5 02:34:26 EST 2009
Tamas,
those kind of inconsistencies (as there are quite a few others) will
hopefully be a thing of the past once we switch to the vtable
rendering architecture. I'd favor leaving things as they are for 5.4
and wait for 6.0 for introducing and documenting these changes.
best regards,
thomas
On Thu, Feb 5, 2009 at 01:19, Tamas Szekeres <szekerest at gmail.com> wrote:
> Folks,
>
> Currently the GD and AGG renderer behaves differently when drawing a point
> with no symbol specified. In the code I can see something like for AGG
>
> if(style->symbol == 0) { // simply draw a circle of the specified color
>
> ren->renderEllipse(p->x+ox,p->y+oy,size,size,0,agg_color,agg_ocolor,width);
> return;
> }
>
> The corresponding code for GD looks like:
>
> if(style->symbol == 0 && fc >= 0) { /* simply draw a single pixel of the
> specified color */
> gdImageSetPixel(img, (int)(p->x + ox), (int)(p->y + oy), fc);
> return;
> }
>
>
> Wouldn't it be reasonable to use the same approach for the different
> renderers? I would prefer the AGG version to be followed.
>
>
> 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