[general]
name=Japan Fude Polygon Loader
qgisMinimumVersion=3.22
qgisMaximumVersion=4.99
description=Download and load MAFF Fude Polygon (Japanese farmland parcel data) directly into QGIS. 農林水産省の筆ポリゴンデータを直接ダウンロード・読込。
version=1.1.0
author=link-field
email=saito@link-field.jp

about=This plugin provides easy access to the Fude Polygon data published by the Ministry of Agriculture, Forestry and Fisheries of Japan (MAFF).

    Features:
    - Prefecture/Municipality selection UI
    - Automatic download from MAFF Fude Polygon site
    - Local cache management
    - Auto-load as styled vector layer (EPSG:4612 / JGD2000)
    - Land type color coding (Rice field=blue, Upland field=yellow)

    農林水産省が公開する筆ポリゴン（農地区画情報）データを簡単にダウンロード・読込できます。
    都道府県・市区町村を選択するだけで、データ取得から表示まで自動で行います。

tracker=https://github.com/akitaneko1127/japan_fude_polygon_loader/issues
repository=https://github.com/akitaneko1127/japan_fude_polygon_loader
homepage=https://link-field.jp/

tags=agriculture,japan,maff,fude,polygon,farmland,parcel,download,geojson

category=Vector
icon=icon.png

experimental=False
deprecated=False
hasProcessingProvider=no
server=False

changelog=Version 1.1.0 (2026-09-02):
    - Fixed a syntax error in region_master.py that prevented the plugin from loading
    - Restricted all network access to HTTPS and an explicit allow-list of official hosts
      (MAFF / GSI); file:// and other schemes can no longer be requested
    - Errors are now reported to the QGIS log panel instead of being silently discarded
    - Code style cleanup (flake8 / bandit clean)
    - Replaced the discontinued MLIT municipality API with a bundled offline
      municipality master (1,919 entries, source: GSI); no network call needed
    - Data year fixed to 2025, the only year MAFF currently publishes
    - Layer name now shows the municipality name instead of the district name
    - Re-enabled the prefecture/municipality download UI and fixed the cache-key
      mismatch that made it silently load nothing
    - Downloaded prefecture data is now clipped to the selected municipality
    - Stopped overriding the layer CRS; the file's own EPSG:4612 is kept
    - QGIS 4.x (Qt6) support: replaced every unscoped Qt enum with its scoped
      form, which works on both PyQt5 and PyQt6
    - Declared qgisMaximumVersion=4.99 so the plugin is offered on QGIS 4.x
    - region_master.py の構文エラーを修正（プラグインが読み込めない問題）
    - 通信をHTTPSと公的機関ホストの許可リストに限定
    - 例外の握り潰しをやめ、QGISログパネルへ出力
    - 廃止された国土交通省の市区町村APIを同梱マスタ（全国1,919件）に置き換え
    - データ年度を公開中の2025年度のみに変更（2024年度以前は公開終了）
    - レイヤ名に丁目名ではなく市区町村名を表示するよう修正
    - 「地域を指定して取得」UIを再有効化し、レイヤが追加されないキャッシュキー不一致を修正
    - 都道府県データを選択した市区町村で絞り込んで読み込むよう変更
    - CRSの上書き（EPSG:6668）を廃止し、データ本来のEPSG:4612を使用
    - QGIS 4.x（Qt6）対応: 廃止された非スコープEnumをスコープ付き形式へ統一（PyQt5/PyQt6両対応）
    - qgisMaximumVersion=4.99 を明示し、QGIS 4.x でもインストール可能に

    Version 1.0.0 (2026-01-28):
    - Initial release
    - Prefecture/Municipality selection
    - Automatic download and cache
    - Land type styling (Rice field/Upland field)
