[osmosis-dev] question about --merge
Christoph Wagner
freemaps.osm at googlemail.com
Tue May 18 19:29:14 BST 2010
Am 18.05.2010 15:18, schrieb Brett Henderson:
> To summarise, if you can draw a graph of the data flows in Osmosis, ensure
> that you never have data being split then recombined at a later point.
>
> In your case the only option is to split it into two steps using temporary
> XML files as you already appear to be doing.
>
> It would be nice if Osmosis could detect this situation and throw an error,
> but it would take a lot of effort and add a lot of complexity that I don't
> really wish to attempt.
Ok, thanks for your reply. I think now I understand the situation better.
While reading your answer I got an idea to solve the problem without writing to disk.
I use a very big buffer now:
osmosis-0.35.1/bin/osmosis --rx input.osm --t outPipe.1=points \
--wk keyList="addr:interpolation,addr:housenumber" --un --s --b 100000000 \
--nk inPipe.0=points keyList="addr:housenumber" --s --b 100000000 \
--m --wx addr.osm
This works very well if you have enough RAM and set the bufferCapacity high enough.
Another possibility would be a better tagfilter that allows me to filter POIs and ways at once.
The task would be for example: "Give me all ways that match this way-filter and all nodes that match this node-filter or are part of the way that matches the way-filter"
I don't know if this is difficult to implement but I think this would be usefull.
Thanks
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20100518/0bd011fb/attachment.pgp>
More information about the osmosis-dev
mailing list