It worked, thanks! --Dmitry
On 27 January 2011 14:30, André Joost <[email protected]<andre%[email protected]> > wrote: > 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 > > > _______________________________________________ > osmosis-dev mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/osmosis-dev >
_______________________________________________ osmosis-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/osmosis-dev
