現在 MacOS Monterey 12.0.1 を実行している Macbook にOsmosisをインストールしたい
インストール手順に従って、次のことを行いました。
- 従うために最善を尽くして(私はLinuxコマンドラインの初心者です)、上のスクリーンショットのコマンドを実行しました。
- それに応じて移動した後
osmosis
、何か出てくるかどうかを確認するためにコマンド ラインを実行しようとしましたが、コマンドが見つからないと言われました。 - osmosis ファイルを実行すると (
open bin
ユーザーのホーム ディレクトリで when と入力すると、新しいターミナル ウィンドウがポップアップ表示され、osmosis に関する一連のドキュメントが表示され、コマンドを編集または実行する方法はありません。
Last login: Sat Dec 4 18:47:24 on ttys000
/opt/osmosis/bin/osmosis ; exit;
(base) darrenconly@Darrens-MacBook-Pro ~ % /opt/osmosis/bin/osmosis ; exit;
osmosis
Example Usage
Import a planet file into a local PostgreSQL database.
osmosis --read-xml file=~/osm/planbet/planet.osm --write-apidb host="x" database="x" user="x" password="x"
Export a planet file from a local PostgreSQL database.
osmosis --read-apidb host="x" database="x" user="x" password="x" --write-xml file="planet.osm"
Derive a change set between two planet files.
osmosis --read-xml file="planet2.osm" --read-xml file="planet1.osm" --derive-change --write-xml-change file="planetdiff-1-2.osc"
Derive a change set between a planet file and a database.
osmosis --read-mysql host="x" database="x" user="x" password="x" --read-xml file="planet1.osm" --derive-change --write-xml-change file="planetdiff-1-2.osc"
Apply a change set to a planet file.
osmosis --read-xml-change file="planetdiff-1-2.osc" --read-xml file="planet1.osm" --apply-change --write-xml file="planet2.osm"
Sort the contents of a planet file.
osmosis --read-xml file="data.osm" --sort type="TypeThenId" --write-xml file="data-sorted.osm"
The above examples make use of the default pipe connection feature, however a simple read and write planet file command line could be written in two ways. The first example uses default pipe connection, the second explicitly connects the two components using a pipe named "mypipe". The default pipe connection will always work so long as each task is specified in the correct order.
osmosis --read-xml file="planetin.osm" --write-xml file="planetout.osm"
osmosis --read-xml file="planetin.osm" outPipe.0="mypipe" --write-xml file="planetout.osm" inPipe.0="mypipe"
Full usage details are available at: http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
とはいえ、これらの使用例で説明されているように浸透を機能させるにはどうすればよいですか? 実行open bin
すると、osmosis 実行可能ファイルが実行されているように見えますが、何も実行できず、コマンドも実行できません。
参考までに、この質問は今年の初めに StackExchange で行われたようですが、あまり詳細ではなく、これまで誰も回答していません。