hi dane, thanks for the warm welcome and for offering to dig into the label positioning problem when you find some time - there is no urgency, but as i'm certainly going to face the same problem with future maps of similar style, i'm glad if you can take a look at it. and also thanks for shedding light on the usage of shild_displacement - i misread the wiki documentation. looking forward to your patch that will facilitate xml-debugging. kind regards from Vienna, harald
From: Dane Springmeyer <[email protected]> To: Harald MAYER <[email protected]> Cc: [email protected] Date: 18.12.2010 19:02 Subject: Re: [Mapnik-users] ShieldSymbolizer positioning problems Sent by: [email protected] On Dec 17, 2010, at 3:49 AM, Harald MAYER wrote: dear mapnik-users, this being my first email to this list, a short introduction: Hi Harald, welcome! my name is harald mayer, i'm working as web manager at the austrian section of the medical humanitarian organization Médecins Sans Frontières / Doctors without Borders (MSF). after producing a series of online maps (like for example http://maps.msf.at/index.php?map=sudan2010) mainly based on the excellent (mapnik-rendered) tiles from mapbox.com, i recently started using mapnik with the intention to produce high-res, printable versions of our (kml-based) online-maps (see the first result here: http://maps.msf.at/mapnik/msf_sudan_2010.jpg). Great, awesome to see you leveraging Mapnik and the MapBox styles for this work. to visualize our project-locations in a similar way as in our "online-maps", i use ShieldSymbolizers. the problem i face is the exact positioning of those: depending on the line-count of the text that the ShieldSymbolizer renders, the positioning of the label changes, somehow overruling the settings made with the "vertical_alignment"-attribute. i tried to illustrate the problem with the attached image: all ShieldSymbolizers used in this test have the same value for "dy" and show results for "vertical_alignment" bottom, top and middle; as you can see, the label is positioned in a different way depending on the line-count of the text, despite same settings for "vertical_alignment". Okay. Sounds tricky and I would need some time to investigate further to get a deeper sense of the problem. I'm on the road currently, but I can try to dig more into this to give you suggestions next week. another problem i have is that i can't figure out how to use the attribute "shield_displacement"; It is only available in trunk and via xml is 'shield_dx' and 'shield_dy' ( http://trac.mapnik.org/browser/trunk/src/load_map.cpp#L1390). It is an urgent need to get better docs up showing which versions support which parameters. I also am working on this patch ( http://trac.mapnik.org/ticket/110) which will give you more feedback when you have misspelled or otherwise used a parameter name that has no effect for your given Mapnik version. i've tried: shield_displacement="10,10" shield_displacement="(10,10)" shield_displacement="10" in my mapnik-XML, but none of those showed any effect. can someone point me in the right direction? thanks & kind regards, harald <shieldSymbolizerTest.png><shieldSymbolizerTest.xml>_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

