Dane Springmeyer wrote: > Marcin, > > wow - those examples are amazing. >
For now I use my testing layer to watch smoothing effect for my map: http://mapa.ump.waw.pl/ump-www/?zoom=16&lat=52.22569&lon=21.05096&layers=00B000T It isn't cached and generated on the fly, so can be slow. You can use it to compare effects with first unmodified Layer in various situations. It works really nice for arcs, but rectangular building polygons looks funny, like cartoons :) : http://mapa.ump.waw.pl/ump-www/?zoom=17&lat=52.2184&lon=20.98352&layers=00B000T Probably my fuzzy logic needs tuning, to reduce effect further for 90 degree and below or I need just switch effect off for buildings. But what about round one then: http://mapa.ump.waw.pl/ump-www/?zoom=17&lat=52.23175&lon=21.00556&layers=00B000T I have problem with my convention of ramps joining two different elevations (half bridge, half normal): http://mapa.ump.waw.pl/ump-www/?zoom=17&lat=52.24761&lon=21.01762&layers=00B000T but this is just my problem when converting map from different format and can be adjusted a little in this step. As mentioned in ticket, I don't smooth polygons starting/ending point and it can be noticeable: http://mapa.ump.waw.pl/ump-www/?zoom=17&lat=52.25619&lon=20.9992&layers=00B000T For now I have only global smooth flag as map attribute similar to buffer_size or bgcolor, I wonder how to implement it right: - cascaded optional attribute of map, layer tags and css nodes in symbolizers? - symbolizers only (each rule need modifying)? - ??? Other examples: http://mapa.ump.waw.pl/ump-www/?zoom=16&lat=52.23719&lon=21.04395&layers=00B000T http://mapa.ump.waw.pl/ump-www/?zoom=16&lat=52.28374&lon=20.99128&layers=00B000T http://mapa.ump.waw.pl/ump-www/?zoom=16&lat=52.28848&lon=20.9612&layers=00B000T http://mapa.ump.waw.pl/ump-www/?zoom=17&lat=52.23413&lon=21.07888&layers=00B000T Overall it kicks in nicely without much side effects. After watching map for a while You don't notice, it was anyhow processed, until switched to unmodified version. Then suddenly You see how "edgy" not smoothed version really is :) . Marcin Rudowski > On May 6, 2009, at 3:31 PM, Marcin Rudowski wrote: > >> Hi, >> >> Recently, I posted ticket for smoothing paths(polylines/polygons) on the >> fly: >> http://trac.mapnik.org/ticket/332 >> >> Today I submitted some code and example images from my tries. It is long >> way from being finished and probably could be implemented differently. >> It is basically proof of concept and still lacks lots of functionality >> (cairo, css, bindings?, ....). _______________________________________________ Mapnik-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-devel
