[OSM-dev] Re: [RFC] Beautify scale bar
SteveC
steve at asklater.com
Sun May 14 14:27:06 BST 2006
* @ 14/05/06 01:53:09 PM jbglaw at lug-owl.de wrote:
> On Sun, 2006-05-14 13:35:15 +0100, Tom Carden <tom at tom-carden.co.uk> wrote:
> > On 14/05/06, Jan-Benedict Glaw <jbglaw at lug-owl.de> wrote:
> > >(One question
> > >remaining: In C, I would have a macro like
> > >
> > >#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])
> > >
> > >to get the number of elements in the array. Is there something similar
> > >in Java to "fix" num_factors?
> >
> > Arrays have built in length in java - factor.length is what you're
> > looking for :)
>
> Uh, ah, thanks. Thanks.
>
> > >Additionally, kilometersPerPixel() is
> > >only used in a meter context, so maybe we'd rename it accordingly and
> > >drop the factor of 1000 everywhere?)
> >
> > Sure. Or just make a metersPerPixel function too if you need it.
>
> That sounds like even more bloat:) Here's an updated patch:
eek, I just applied your last one :-)
have fun,
SteveC steve at asklater.com http://www.asklater.com/steve/
More information about the dev
mailing list