[mapserver-users] Draw roads WITHOUT anti-aliasing

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Tue Oct 17 23:57:01 PDT 2017


Damn... missed attaching the images.

> -----Ursprüngliche Nachricht-----
> Von: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Im
> Auftrag von Eichner, Andreas - SID
> Gesendet: Mittwoch, 18. Oktober 2017 08:28
> An: Erik H
> Cc: mapserver-users at lists.osgeo.org
> Betreff: Re: [mapserver-users] Draw roads WITHOUT anti-aliasing
> 
> Hi,
> 
> I just meant that it seems to be pretty easy to implement aliased
> rendering with AGG.
> Simply changing the typedef in line 91 of mapagg.cpp from
> 
>   typedef mapserver::renderer_scanline_aa_solid<renderer_base>
> renderer_scanline;
> 
> to
> 
>   typedef mapserver::renderer_scanline_bin_solid<renderer_base>
> renderer_scanline;
> 
> turns of anti-aliased rendering. I've attached the output of "shp2img -m
> line_simple.map" from the msautotests.
> An additional member in class AGG2Renderer for the aliased rasterizer
> and conditionally passing one or the other
> to render_scanlines() depending on some value of strokeStyleObj might be
> enough.
> 
> Regards
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Erik H [mailto:erik.h11.01 at gmail.com]
> > Gesendet: Dienstag, 17. Oktober 2017 17:34
> > An: Eichner, Andreas - SID
> > Cc: Richard Greenwood; mapserver-users at lists.osgeo.org
> > Betreff: Re: [mapserver-users] Draw roads WITHOUT anti-aliasing
> >
> > As for Andreas' remark about 'simply the use of another scanline
> > rasterizer.' - I'm sorry but I'm not much of a C++ developer. If I
> have
> > to do rasterizing, I'd skip MapServer altogether and generate the PNG
> in
> > Java.
> >
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: line_simple_aliased.png
Type: image/png
Size: 2208 bytes
Desc: line_simple_aliased.png
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20171018/56d0b64e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: line_simple_antialiased.png
Type: image/png
Size: 6692 bytes
Desc: line_simple_antialiased.png
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20171018/56d0b64e/attachment-0003.png>


More information about the mapserver-users mailing list