
13 Jan
2010
13 Jan
'10
11 p.m.
Hi WanMil,
What do you mean with "at import of osm files"? The Osm5XmlHandler does not clip things, does it?
Osm5XmlHandler does a "soft clip" - what I mean by that is it adds nodes to ways where they intersect the tile's boundaries. This is only for lines, not areas. By adding those boundary nodes there, it can avoid generating short routing arcs when the ways are really (hard) clipped later in StyledConverter. To be honest, the boundary between Osm5XmlHandler and StyledConverter has become rather blurred over time (mostly my fault) and it really could do with refactoring. Still, it works tolerably well so it's not too high on the list of stuff to rewrite! Cheers, Mark