[OSM-dev] Osmosis Replication Statistics
Tom Hughes
tom at compton.nu
Wed Aug 29 00:45:24 BST 2007
In message <46D4AF68.7090506 at bretth.com>
Brett Henderson <brett at bretth.com> wrote:
> Tom Hughes wrote:
>
> > A couple of things that came to mind over the weekend are:
> >
> > - A filter task to select only those objects bounded by a given polygon
>
> There is already a --bounding-box filter task. Presumably you're
> looking for something more accurate than a square ... If so, I have
> some research to do, I don't know how to figure out if a point fits
> inside a shape. Hopefully the algorithm isn't too difficult.
Yep - they originally gave me a complex polygon. I'm now using a set
of six rectangles that approximate the border instead.
Assuming a vaguely sane border the algorithm is OK I think. I'm sure
it's in my copy of Foley, Feiner, van Damn and Hughes somewhere...
> > - A task to report the which users were involved in creating/editing
> > a given set of objects
>
> I don't currently handle a user name field but it shouldn't be difficult
> to add. Is this available from planet files?
Planet could have the display name where people have made their edits
public, but currently doesn't. If you're reading the database then
obviously you can get it (or the numeric user id).
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list