<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.5">
<TITLE>RE: osm pre-processing API. Was: Re: Intelligent fitting street names in OSMarender</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Barry,<BR>
<BR>
I'm pleased to see that you are working on a pre-processing API. I wrote some of the Mercator projection code in osmarender, and did consider a perl pre-processing step at the time. In the end I went with the xslt version, simply because the advantages of pre-processing the projection did not justify new dependencies. Since then tiles@home has really taken off, and we're starting to see lots more really clever stuff.<BR>
<BR>
To be honest I was fairly surprised you opted for a post-processing step for the bezierification, but I'm sure that's been discussed to death by now. The big advantage of doing it pre-processing is that we can put tags in the ways/nodes to fine-tune the process.<BR>
<BR>
I don't think post-processing the text placement was necessarily a bad idea - it certainly needs to happen after the projection from geographic to image coordinates, and needs to know which render style is to be used in order to get fontsizes - but a pre-processing step isn't out of the question.<BR>
<BR>
I think the text placement hinting could easily be extended to check for overlapping text and repeated text (e.g. when both lanes of a dual carriageway are labelled).<BR>
<BR>
Let me know when you have something setup and I'll update my code, and feel free to hack my code to death if you like. :-)<BR>
<BR>
Rob<BR>
</FONT>
</P>

<br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for viruses by </FONT><A href="http://www.mailcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>MailControl</FONT></A><FONT style="BACKGROUND-COLOR: #ffffff">, a service from </FONT><A href="http://www.blackspider.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>BlackSpider Technologies</FONT></A><FONT style="BACKGROUND-COLOR: #ffffff">.</FONT></P>
</body>
</HTML>