You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2008-11-20 11:58:20
- Central America
- Member
- Registered: 2008-11-20
- Posts: 4
Rendering Titles of buildings on two lines
Hello all,
I have two buildings that are next to each other both of which have long names
Catholic Church of St Teresa
Craigmillar Church
Is there any way of rendering the titles as
Catholic Church
Of
St Teresa
and
Craigmillar
Church
I know that Mapnik and Osmarender render them differently but is there any way to force a new line in the titles. Any links to an other little tips and tricks would be appreciated too. This is many to stop overlapping of titles
Many thanks in advance
CA
Offline
#2 2008-11-20 14:01:36
- emj
- Member
- From: .se (59.3N17.99E) 0735969076
- Registered: 2006-06-18
- Posts: 949
Re: Rendering Titles of buildings on two lines
Not in Openstreetmap tools that I know of (there might be a away)... I have only superficial experience with mapnik, so ther emight be some way to make a mapnik stylesheet that can do this. To find this I would recommend you go to the mapnik forums and search/ask around, and if you find a solution come back here.
Offline
#3 2008-11-20 14:37:24
- Central America
- Member
- Registered: 2008-11-20
- Posts: 4
Re: Rendering Titles of buildings on two lines
Thanks for the quick response, I will try there
Cheers
CA
Offline
#4 2008-11-20 19:49:19
- Skywave
- Member
- Registered: 2007-11-13
- Posts: 91
Re: Rendering Titles of buildings on two lines
Mapnik does truncate, but not with the space like you probably want. See http://www.openstreetmap.org/?lat=42.69 … rs=B000FTF
Offline
#5 2008-11-21 00:30:17
- emj
- Member
- From: .se (59.3N17.99E) 0735969076
- Registered: 2006-06-18
- Posts: 949
Re: Rendering Titles of buildings on two lines
Mapnik does truncate, but not with the space like you probably want.
Yes but how can you force it to truncate?
I know some says "don't tag for the renderer" which this would be, but "tag for the renderer" is synonym to "tag for humans" you can never create good computer generated rules for these kind of things.
A good example is where to put the page break in a document, computers screw this up all the time and it's impossible to fix.
Offline
#6 2008-11-21 11:16:12
- Richard
- Member
- From: Charlbury, UK
- Registered: 2007-04-24
- Posts: 427
- Website
Re: Rendering Titles of buildings on two lines
As a general principle, in my 'umble opinion, cartographic adjustment should not be stored in the core tags. You absolutely shouldn't have "Catholic Church\nof\nSt Teresa" or anything like that. That will be problematic for routing programs, name searches, and so on.
But there's nothing to stop you adding a tag such as renderer:name:linebreaks with hinting for the renderer... not that any existing renderers pick up on it yet.
Offline
#7 2008-11-21 12:02:26
- emj
- Member
- From: .se (59.3N17.99E) 0735969076
- Registered: 2006-06-18
- Posts: 949
Re: Rendering Titles of buildings on two lines
"Catholic Church\nof\nSt Teresa" [...] not that any existing renderers pick up on it yet.
The tag or the linebreaks? If \n works then this is "solved".
Offline
#8 2008-11-22 00:49:45
- Richard
- Member
- From: Charlbury, UK
- Registered: 2007-04-24
- Posts: 427
- Website
Re: Rendering Titles of buildings on two lines
What I'm saying is do _not_ use \n - I don't know whether it works or not, but it's a bad thing to do. The name of the church is not "Catholic Church\nof\nSt Teresa", it's "Catholic Church of St Teresa". If you insert the linebreaks, you're inserting bogus data.
Offline
#9 2008-11-22 01:37:54
- emj
- Member
- From: .se (59.3N17.99E) 0735969076
- Registered: 2006-06-18
- Posts: 949
Re: Rendering Titles of buildings on two lines
"Catholic Church\nof\nSt Teresa", it's "Catholic Church of St Teresa". If you insert the linebreaks, you're inserting bogus data.
<hothead>I'm nitpicking now, but it's probably "Saint Theresa". </hothead>
But using a linebreak tag was a good pointer if this is ever solved.
Offline