-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from MIERUNE/feature/readme
UIの修正,作成したCS立体図へのズーム設定
- Loading branch information
Showing
4 changed files
with
542 additions
and
658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,8 @@ | ||
# qgis-plugin-template | ||
# qgis-csmap-plugin | ||
|
||
QGIS3.x プラグイン開発のひな形 | ||
DEMからGeoTIFF形式のCS立体図を作成するQGISプラグインです。 | ||
DEMの変換にはcsmap-pyを利用しています。 | ||
It is a QGIS plugin that creates a GeoTIFF format CS topographic map from a DEM. | ||
The DEM conversion process is based on [csmap-py](https://github.com/MIERUNE/csmap-py). | ||
|
||
## Preparation | ||
|
||
### Windows | ||
|
||
- Windowsを利用する場合は、pyproject.tomlを開き、[packages]内のコメントアウトを削除し、プロジェクトに適したバージョンのQGIS内のPythonを参照してください。 | ||
|
||
``` | ||
packages = [ | ||
{ include = "qgis", from = "C:\\Program Files\\QGIS 3.28.2\\apps\\qgis\\python" }, | ||
] | ||
``` | ||
|
||
1. install `Poetry` | ||
|
||
```sh | ||
pip install poetry | ||
``` | ||
|
||
2. install dependencies with Poetry | ||
|
||
```sh | ||
# QGIS内のPython実行ファイルを参照する(開発ターゲットのバージョンのQGIS) | ||
# macOS, bash | ||
poetry env use /Applications/QGIS.app/Contents/MacOS/bin/python3 | ||
# Windows, Powershell | ||
poetry env use "C:\Program Files\QGIS 3.28.2\apps\Python39\python.exe" | ||
poetry install | ||
``` | ||
|
||
仮想環境がカレントディレクトリに作成されます。 | ||
|
||
3. (when VSCode) 仮想環境をVSCode上のPythonインタプリタとして選択 | ||
|
||
VSCodeはカレントディレクトリの仮想環境を検出しますが、手動で選択する必要がある場合もあります。 | ||
|
||
1. [Cmd + Shift + P]でコマンドパレットを開く | ||
2. [Python: Select Interpreter]を見つけてクリック | ||
3. 利用可能なインタプリタ一覧が表示されるので、先ほど作成した仮想環境を選択(通常、リストの一番上に"Recommended"として表示される) | ||
![image](./imgs/howtouse.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.