On Thu, Dec 03, 2009 at 10:18:46PM +0000, Philip Stubbs wrote: > 2009/12/3 Dane Springmeyer <[email protected]>: > > Hi Philip, > > > > There is no easy way. > > Darn. :-( > > > > > See http://trac.mapnik.org/ticket/13 and a potential solution at comment #11 > > (http://trac.mapnik.org/ticket/13#comment:11). > > > > I didn't provide much detail so feel free to follow up with questions. > > > > In general, if it is possible to merge adjacent lines to create longer lines > > for labeling, then that is a nice solution. If that is not possible in your > > case, then I figure that truly calls for some way of placing text longer > > than lines, which is not supported. > > From reading the mentioned ticket, I guess I am stuffed for now. My > situation is short, single segment roads, that need to be labelled.
You could take each of those short segments and create a copy of it in the database where you make the segment longer. Then draw the original segment as road and use the longer segment to draw the label with. I have not tried this, but it should be reasonably easy to do with a bit of math. Can probably be all done in the database. If the longer segment still has the same center as the smaller one, labels should look alright is most cases. Chances are you'll get overlapping labels that way, though. Jochen -- Jochen Topf [email protected] http://www.remote.org/jochen/ +49-721-388298 _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

