Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2745 closed enhancement (duplicate)

Allow option for rendering 'thinner' lines with AGG output

Reported by: springmeyer Owned by: tbonfort
Priority: low Milestone:
Component: AGG Version: unspecified
Severity: minor Keywords: agg, line width
Cc: dmorissette, sdlime

Description

Mapnik allows for users to specify fractional width for line symbolizers. These are interpreted by the agg renderer in such a way that the line looks thinner, whereby the color and intensity is lessened.

My opinion is that this 'thinner' output is a desirable feature, and users would benefit from either being able to supply fractional line widths or use an AGG renderer FORMATOPTION for different results.

This message captures the mapnik comparison issue and includes links to the images compared and the mapserver mapfile used.

http://www.nabble.com/Re%3A-Fractional-line-widths--p19041876.html

Attachments (4)

comparison_of_agg_rendering.png (22.6 KB ) - added by springmeyer 16 years ago.
Screen shot of image comparison, mapnik left, mapserver right
mapserver_0.1_line_width.png (58.9 KB ) - added by springmeyer 16 years ago.
Mapserver example graphic with 0.1 line width using AGG renderer
mapnik_0.1_line_width.png (74.6 KB ) - added by springmeyer 16 years ago.
Mapnik example graphic width 0.1 line width using AGG renderer
close_comparison.png (37.5 KB ) - added by springmeyer 16 years ago.
New comparison using fractional widths in mapserver

Download all attachments as: .zip

Change History (10)

by springmeyer, 16 years ago

Screen shot of image comparison, mapnik left, mapserver right

comment:1 by springmeyer, 16 years ago

Same pitch I made to Qgis, for reference:

https://trac.osgeo.org/qgis/ticket/969

comment:2 by springmeyer, 16 years ago

Just realized that r7923 Ticket #2766 must begin to address this issue.

Can anyone comment on what more needs to be done with the agg renderer to use doubles to approximate thinner lines?

comment:3 by dmorissette, 16 years ago

Cc: dmorissette sdlime added

comment:4 by sdlime, 16 years ago

Resolution: duplicate
Status: newclosed

Those tickets do address the issue. You can set fractional line widths and the AGG code uses those values. GD still rounds values to the nearest int but it works great for AGG. Download the dev code and try it!

Steve

comment:5 by springmeyer, 16 years ago

Great stuff! I finally had a chance to rebuild with the latest SVN Head(r7971) and yes, the thinner line width look great.

Awesome improvement!

by springmeyer, 16 years ago

Mapserver example graphic with 0.1 line width using AGG renderer

by springmeyer, 16 years ago

Attachment: mapnik_0.1_line_width.png added

Mapnik example graphic width 0.1 line width using AGG renderer

comment:6 by springmeyer, 16 years ago

Here are two comparison graphics now that look nearly identical between mapserver and mapnik.

MapServer


Mapserver example graphic with 0.1 line width using AGG renderer

Mapnik


Mapnik example graphic width 0.1 line width using AGG renderer

Close Comparion (MapServer on top)


New comparison using fractional widths in mapserver

by springmeyer, 16 years ago

Attachment: close_comparison.png added

New comparison using fractional widths in mapserver

Note: See TracTickets for help on using tickets.