[osmosis-dev] Merging two entity streams fails on Windows
André Joost
andre+joost at nurfuerspam.de
Thu Jan 27 12:30:15 GMT 2011
Am 23.01.11 00:25, schrieb Dima Batenkov:
>
> I can split the above command into three separate commands which run
> successfully:
>
> osmosis -q --rx israel.osm --tf accept-ways boundary=* --tf accept-relations
> boundary=* --used-node --sort --wx b1.osm
> osmosis -q --rx israel.osm --tf accept-ways natural=coastline --tf
> reject-relations --used-node --sort --wx b2.osm
> osmosis -q --rx b1.osm --rx b2.osm --merge --wx admin.osm
>
> However (this is another unrelated problem) I cannot put the three above
> commands into one batch file because the batch exits after completing just
> the first line.
>
Hi,
thats a dos-specific problem. To invoke several batch-files within a
batch-file, you have to use the call statement. The following will work:
call D:\Karten\OpenStreetMap\osmosis\bin\osmosis.bat --read-pbf
D:\Karten\osm\Geofabrik\duesseldorf.osm.pbf --bb left=6.48 right=6.7
bottom=51.29 top=51.4 --write-xml Krefeld.osm
call D:\Karten\OpenStreetMap\osmosis\bin\osmosis.bat --read-xml
Krefeld.osm --tf accept-nodes highway=bus_stop --tf reject-ways --tf
reject-relations --write-xml bus-KR.osm
(Pathnames to be adjusted)
greetings,
André Joost
More information about the osmosis-dev
mailing list