[OSM-talk] T at H error

Alex Mauer hawke at hawkesnest.net
Mon Sep 24 21:30:14 BST 2007


80n wrote:
> the way.  The obvious solution is to limit this recursion to, say, 20
> segments, and just assume that names will fit if the way has more
> segments than this.

Of course, this might not be true.  Is it possible to, rather than
finding the length of the entire way and checking if the name will fit
within that, instead find the largest desired length of the name, and
recurse until either the way is longer than that (meaning it fits) or
the complete way is found (meaning it will not fit and the text must be
shrunk or truncated or whatever).

-Alex Mauer "hawke"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070924/f2fecf7a/attachment.pgp>


More information about the talk mailing list