{"id":241,"date":"2007-07-31T01:46:46","date_gmt":"2007-07-31T06:46:46","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=241"},"modified":"2007-07-31T01:46:46","modified_gmt":"2007-07-31T06:46:46","slug":"mapserver-agg-rendering-no-longer-disappointed","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/241\/mapserver-agg-rendering-no-longer-disappointed\/","title":{"rendered":"MapServer AGG Rendering: No Longer Disappointed"},"content":{"rendered":"<p><a href=\"http:\/\/boston.freemap.in\/cgi-bin\/mapserv-svn-6422?MAP=%2Fwww%2Ffreemap.in%2Fboston%2Fmap%2Fgmaps-5.0.map&#038;LAYERS=border%2Copenspace,water%2Croads%2Crapid_transit%2Cbuildings&#038;FORMAT=AGG&#038;TRANSPARENT=off&#038;SERVICE=WMS&#038;VERSION=1.1.1&#038;REQUEST=GetMap&#038;STYLES=&#038;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&#038;SRS=EPSG%3A2805&#038;BBOX=231659.899048%2C900631.886795%2C232819.996704%2C901791.984451&#038;WIDTH=1024&#038;HEIGHT=1024\"><img decoding=\"async\" src=\"http:\/\/tinyurl.com\/2tvr85\" alt=\"Click for larger image\" style=\"float:right; margin:10px;\" \/><\/a><br \/>\nWith Steve Lime&#8217;s help on my previous post on the topic, I&#8217;ve been able to turn my previously somewhat dissappointing map into something that is definitely coming out way ahead of where it was. (Click the image to see a bigger version of the same area). <\/p>\n<p>First trick: Removing &#8216;antialias true&#8217;\/&#8217;transparency alpha&#8217; lines from my mapfile, as Zac and Steve both mentioned on the previous post. This actually did most of the work. Looking back, had I actually removed them all, that would have done all of the work, but I missed one, so my polygon fills were still not working. Thankfully, Steve is a great man, and committed fixes for that to trunk, so now I&#8217;ve got <a href=\"http:\/\/tinyurl.com\/3cq9qq\">real pretty images<\/a> serving up out of the Boston Freemap. With these changes, the label problems aren&#8217;t nearly as pronounced as I&#8217;d seen them be on other maps.<\/p>\n<p>I definitely feel like this is a huge step in the right direction.<\/p>\n<p>Old:<br \/>\n<img decoding=\"async\" src=\"http:\/\/boston.freemap.in\/cgi-bin\/mapserv?MAP=%2Fwww%2Ffreemap.in%2Fboston%2Fmap%2Fgmaps.map&#038;LAYERS=border%2Copenspace,water%2Croads%2Crapid_transit%2Cbuildings&#038;FORMAT=png&#038;TRANSPARENT=off&#038;SERVICE=WMS&#038;VERSION=1.1.1&#038;REQUEST=GetMap&#038;STYLES=&#038;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&#038;SRS=EPSG%3A2805&#038;BBOX=222959.166626%2C891931.154373%2C241520.729126%2C910492.716873&#038;WIDTH=400&#038;HEIGHT=400\" \/><\/p>\n<p>New:<br \/>\n<img decoding=\"async\" src=\"http:\/\/boston.freemap.in\/cgi-bin\/mapserv-svn-6422?MAP=%2Fwww%2Ffreemap.in%2Fboston%2Fmap%2Fgmaps-5.0.map&#038;LAYERS=border%2Copenspace,water%2Croads%2Crapid_transit%2Cbuildings&#038;FORMAT=AGG&#038;TRANSPARENT=off&#038;SERVICE=WMS&#038;VERSION=1.1.1&#038;REQUEST=GetMap&#038;STYLES=&#038;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&#038;SRS=EPSG%3A2805&#038;BBOX=222959.166626%2C891931.154373%2C241520.729126%2C910492.716873&#038;WIDTH=400&#038;HEIGHT=400\" \/> <\/p>\n<p>Pay extra attention to the T lines, which are one of the more obvious failings of the GD rendering.<\/p>\n<p>Many many thanks to Steve for his help in turning the rather disappointing map into something that I&#8217;m really very happy with. I&#8217;m glad to be proven wrong &#8212; in exactly the way I hoped I would be &#8212; on the problems with MapServer&#8217;s AGG rendering. I&#8217;m looking forward to converting more maps in the near future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Steve Lime&#8217;s help on my previous post on the topic, I&#8217;ve been able to turn my previously somewhat dissappointing map into something that is definitely coming out way ahead of where it was. (Click the image to see a bigger version of the same area). First trick: Removing &#8216;antialias true&#8217;\/&#8217;transparency alpha&#8217; lines from my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,50],"tags":[],"class_list":["post-241","post","type-post","status-publish","format-standard","hentry","category-locality-and-space","category-mapserver"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}