Hi,
Pierre-Alain Dorange wrote:
I finally build my proto and it works fine, but i'm disappointed : it's
slow...
curl "http://download.geofabrik.de/osm/europe/france.osm.pbf" \
-o "./temp/france.osm.pbf"
osmosis --rb "./temp/france.osm.pbf" \
--tf accept-nodes "man_made=surveillance" --tf reject-ways \
--tf reject-relations --wx "./temp/frn.xml"
osmosis --rb "./temp/france.osm.pbf" \
--tf accept-ways "man_made=surveillance" --tf reject-relations\
--used-node --wx "./temp/frw.xml"
osmosis --rb "./temp/france.osm.pbf" \
--tf accept-relations "man_made=surveillance" --used-way\
--used-node --wx "./temp/frr.xml"
osmosis --rx "./temp/frn.xml" --rx "./temp/frw.xml" \
--rx "./temp/frr.xml" --merge --merge \
--wx "./data/fr_surveillance.xml"
You could probably save some time by doing something like this
(shortened by dropping arguments):
curl ... -o - | osmosis --rb /dev/stdin --tee 3 --tf --tf -tf --wx --tf
--tf --un --wx --tf --un --uw --wx
that way you would start processing while the download was still
ongoing, and process all three filters at the same time. Logically it
would even be possible to add the merge step to the back of the chain
but I remember some past discussion on the Osmosis list about potential
deadlocks if you combine what you have split in the same task.
Bye
Frederik
--
Frederik Ramm ## eMail frede...@remote.org ## N49°00'09" E008°23'33"
_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev