[OSM-dev] Rendering of long street names for short streets
Shaun McDonald
shaun at shaunmcdonald.me.uk
Sun Jul 19 10:29:25 BST 2009
On 18 Jul 2009, at 09:13, Michael Ritzert wrote:
> Hi,
>
> Florian Lohoff wrote:
>> Putting explicit abbreviation onto all streets is a huge overkill.
>> I'd rather vote for a simple abbreviation dictionary in the svn
>> which is renderer agnostic. I am not shure on how to include
>> the abbreviation then as the renderer would need to chose the name
>> based on the space available.
>
> I had once (locally) tested a patch for T at H to try and find shorter
> names for streets when there is little space. The patch itself was
> rather easy, but getting the location dependency in the process was
> harder. For my tests, I created an input file where each road had the
> is_in tag correctly set. With this information, I was able to
> distinguish between for example Spanish "Calle"s which are abbreviated
> as "C/" (and several other options) or left out completely and Italian
> "Calle"s to be shortened to "C.le".
>
Do not use the freeform is_in tag, as it just bloats the data with
unnecessary information. It is also very difficult to parse due to its
freeform nature. Get a set of country polygons and test to see which
one each street is inside of.
Shaun
More information about the dev
mailing list