[osmosis-dev] Merging two entity streams fails on Windows

Dima Batenkov dima.batenkov at gmail.com
Thu Jan 27 17:46:46 GMT 2011


It worked, thanks!

--Dmitry

On 27 January 2011 14:30, André Joost
<andre+joost at nurfuerspam.de<andre%2Bjoost at nurfuerspam.de>
> 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
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110127/5e6f01db/attachment.html>


More information about the osmosis-dev mailing list