[osmosis-dev] Proposal for Allowing Additional Data in Pipeline

Brett Henderson brett at bretth.com
Sun Jun 12 13:29:56 BST 2011


On Wed, Jun 8, 2011 at 6:33 PM, Jochen Topf <jochen at remote.org> wrote:

> > Hmm, a somewhat rambling email :-)  Any thoughts?
>
> A flexible mechanism like this would be very interesting and useful, but I
> also
> see a lot of potential for confusion. Some tasks can handle certain extra
> data,
> some tasks can't. Some would only work if extra data is present, some would
> silently do wrong things when expected data is not present, etc. Currently
> all tasks can be plugged together and if you are trying to combine them in
> a
> way that doesn't work (for instance a task reading change data instead of
> one
> reading plain data), Osmosis will complain.
>
> So I think this needs to be a bit more formalized so Osmosis can still make
> those checks.
>
> The Map<String, Object> could be connected to some registry for the strings
> (or the strings would be objects instead with some extra information.) For
> each one you would have at least the two options:
> If a tasks encounters an object of this type in the pipeline and doesn't
> understand it,
> * it will just ignore it and optionally pass it on
> * it has to complain.
>

A central registry makes sense for the reasons you say.  I'd prefer to make
registration optional though.  In other words, it would be nice to be able
to register attributes if you want them to be checked properly, but for
unrecognised attributes to be ignored and passed along unchanged.  I imagine
it would be useful to be able to pass custom attributes for custom plugins,
or even to allow special attributes in a custom XML file to be passed
through the pipeline.

It's largely academic at this point though, I don't think I'm going to get
it done :-)

Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110612/5757a2f9/attachment.html>


More information about the osmosis-dev mailing list