Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI微調整,metadata/READMEの修正,アイコンの追加 #32

Merged
merged 5 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# qgis-csmap-plugin

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).
<img src='./imgs/icon.png' alt="CSMap Plugin Icon" width="10%">

![image](./imgs/howtouse.png)
DEMをGeoTIFF形式のCS立体図に変換するQGISプラグインです。<br>
Kanahiro marked this conversation as resolved.
Show resolved Hide resolved
geogra-geogra marked this conversation as resolved.
Show resolved Hide resolved
DEMの変換処理は[ csmap-py ](https://github.com/MIERUNE/csmap-py)を利用しているため,最新版QGIS LTR(Windows / macOS)で動作します。<br>

## 使用方法

- アイコンをクリックして,プラグインを起動します。
- 入力ファイル:DEM(GDALでサポートされている形式)を選択します。
- 出力ファイル:出力されるCS立体図の名前を指定します。
- <b>高度なオプション</b> 及び <b>処理終了後,自動でウィンドウを閉じる</b> の使用は任意です。
Kanahiro marked this conversation as resolved.
Show resolved Hide resolved

<img src='./imgs/usage.png' alt="Usage Example of CSMap Plugin" width="70%">
2 changes: 1 addition & 1 deletion dem_to_csmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def convert_dem_to_csmap(self):
)
return

# 出力結果をQGISに追加
# 出力結果をQGISに追加・マップキャンバスの中心に表示
rlayer = QgsRasterLayer(output_path, os.path.basename(output_path))
QgsProject.instance().addMapLayer(rlayer)
iface.setActiveLayer(rlayer)
Expand Down
70 changes: 55 additions & 15 deletions dem_to_csmap.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,45 @@
<x>0</x>
<y>0</y>
<width>478</width>
<height>463</height>
<height>433</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="1">
<widget class="QgsFileWidget" name="mQgsFileWidget_input">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>入力ファイル</string>
</property>
Expand All @@ -32,15 +54,36 @@
</property>
</widget>
</item>
<item>
<widget class="QgsFileWidget" name="mQgsFileWidget_input"/>
<item row="1" column="1">
<widget class="QgsFileWidget" name="mQgsFileWidget_output">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>出力ファイル</string>
</property>
Expand All @@ -49,9 +92,6 @@
</property>
</widget>
</item>
<item>
<widget class="QgsFileWidget" name="mQgsFileWidget_output"/>
</item>
</layout>
</item>
<item>
Expand Down Expand Up @@ -495,8 +535,8 @@
<widget class="QPushButton" name="pushButton_cancel">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
<width>100</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
Expand Down
Binary file removed imgs/howtouse.png
Binary file not shown.
Binary file modified imgs/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions metadata.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[general]
name=CSMap Plugin
qgisMinimumVersion=3.0
about=Processing is based on csmap-py.
description=Convert DEM to CSMap
version=1.0
qgisMinimumVersion=3.34
about=最新版QGIS LTR(Windows / macOS)で動作します。
description=DEMをGeoTIFF形式のCS立体図に変換するQGISプラグインです。
version=0.0.1

#Plugin main icon
icon=imgs/icon.png

author=MIERUNE Inc.
[email protected]
homepage=
tracker=
repository=
tags=
homepage=https://github.com/MIERUNE/csmap-qgis-plugin
tracker=https://github.com/MIERUNE/csmap-qgis-plugin/issues
repository=https://github.com/MIERUNE/csmap-qgis-plugin
tags=python, DEM, GeoTIFF
category=
Loading