Hi, I'm looking into a request to have the label conflict resolution algorithm consider other graphic elements as obstacles for labeling, in particular point symbolizers, but it could be something else as well. As I understand this is something the ESRI products allow for.
The current labeler already has the ability to store a Rectangle2d as an obstacle and uDig is using to avoid labels overlapping with some map decorations, so the labeler itself would not have to be touched, it already has the necessary area reservation abilities. So I guess what I'd need to to mark certain symbolizers as obstacles. Looks like a good occasion to move TextSymbolizer.getOptions() one level up in Symbolizer so that all symbolizers can have vendor options. I guess the sld could look like: <PointSymboolizer> <Graphic> ... </Graphic> <VendorOption name="labelObstacle">true</VendorOption> </PointSymbolizer> and the renderer would process that directive by marking the rectangle2d used by the geometry as busy (this won't work too well will lines, we'd need a bitmap based conflict resolution to do that better). Ah, I'd need to commit the work on 2.6.x as well, and the above would be an API change. What about doing the API change on trunk only and have the code work against the implementations on 2.6.x Otherwise I can setup a git clone just for this work for the time being. Opinions? Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel