MIERUNE / csmap-qgis-plugin

QGIS-Plugin to convert DEM to GeoTIFF format CS topographic map.
https://mierune.co.jp
GNU General Public License v2.0
7 stars 0 forks source link

入力ファイルの制限なし #23

Closed KeiTa4446 closed 3 weeks ago

KeiTa4446 commented 1 month ago

22 のマージが前提

Close #17

Description(変更内容)

Manual Testing(手動テスト)

Summary by CodeRabbit

coderabbitai[bot] commented 1 month ago

Walkthrough

dem_to_csmap.pydem_to_csmap.uiのスクリプトは、ファイル入出力の処理、エラーハンドリング、フィルターとストレージモードの追加などの機能強化が行われました。DEMからCSMapへの変換ロジックが改善され、エラーメッセージとQGISでの出力処理が向上しました。

Changes

ファイル 変更内容の要約
dem_to_csmap.py QGISコアモジュールのインポート、ファイルウィジェットのフィルターとストレージモードの変更、エラーハンドリングの追加、出力ラスターレイヤーのQGISへの追加。
dem_to_csmap.ui ウィジェットの名前変更、チェックボックスの追加、矩形の高さ変更、ボタンウィジェットのプロパティ追加。

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UI
    participant Script

    User->>UI: ファイルを選択
    UI->>Script: 入力パスを取得
    Script->>Script: DEMをCSMapに変換
    Script->>Script: エラーチェック
    Script->>UI: エラーメッセージ(エラー時)
    Script->>UI: 出力パスを取得
    Script->>UI: 出力ラスターレイヤーをQGISに追加
    UI->>User: 処理完了メッセージ

Poem

変換の道は険しくとも、
新たなフィルターで楽々と、
エラーも捕えて安心さ、
QGISに輝くレイヤーが、
うさぎも跳ねる嬉しさよ。
🐇✨


Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
geogra-geogra commented 1 month ago

@KeiTa4446

手動テストについての質問です

test.tif以外のDEMデータ

tifファイル以外で作成されたDEMファイルという意味で合ってますか? 上森さんがテストしたサンプルはありますか?

先日も提案させていただきましたが、他の人がテストしやすいように各種ファイルをSampleディレクトリのようなものを作ってまとめておくと良いと思います。 もちろんそれ以外の形式や違うデータでの検証も必要ですが、まずは上森さんが意図する動作が他の端末でも行えるのかが大切だと思います

KeiTa4446 commented 4 weeks ago

tifファイル以外で作成されたDEMファイルという意味で合ってますか?

上記で間違いないです。 アドバイス通りにサンプルディレクトリを作ったところ,Lintテストでエラーが出たので,使用したファイルをPR時に添付するようにします。 sample.zip

geogra-geogra commented 4 weeks ago

山本LGTMです うさぎさんに反応してあげてください(現在必要ない機能には、こういう理由で今それは考えなくていいです、って返信しておけば次回以降そこにツッコミ入れないようにしてくれます) @Kanahiro さんお願いします

KeiTa4446 commented 4 weeks ago

パラメータを設定した際にプレビューを見られるような機能を足すissueがありますが,それまでは,処理終了後にウィンドウを自動で閉じるかどうか,ユーザーが判断できるようにチェックボックスを追加しました。 以下のテストデータを使用して,チェックボックスの動作を確認していただきたいです。 sample.zip