[general]
name=Forestry Operations Lite
qgisMinimumVersion=3.16
qgisMaximumVersion=3.99
description=Terrain analysis for forestry sites: DEM/DSM loading, slope, TWI, stability index, and time-area flow-load estimation.
version=0.2.11
author=Hideharu Masai
email=hideharumasai@void.mints.ne.jp

about=Supports forestry site assessment through terrain analysis using DEM/DSM data. Computes slope, topographic wetness index (TWI), infinite-slope stability factor of safety, and time-area flow-load estimation (Clark unit hydrograph). Requires numpy, GDAL, and scipy (bundled with most QGIS installations). Support: https://paypal.me/rawslnc

tracker=https://github.com/raw-slnc/forestry_operations_lite/issues
repository=https://github.com/raw-slnc/forestry_operations_lite

hasProcessingProvider=no
changelog=
    0.2.11 - Rebuilt Flow analysis using the time-area method (Clark unit hydrograph). Added Peak load Qp, Mean load Qm, and Time load Tc outputs with improved colour scaling and filtering. Rainfall inputs now stay mutually consistent. Added persistent result export and improved run switching and layer stacking. Overwrite runs turn displayed terrain layers off before replacing files and restore the display afterwards, retrying once if Windows keeps the old output locked. Fixed a Windows crash on switching analysis runs / toggling terrain layers, and a plugin-load crash from a stale UI base class. The design storm's post-peak interval now uses a 1 mm/h floor instead of dropping to zero before the stated duration ends (volume-compensated; minor Peak load effect). Help documentation updated.
    0.2.10 - Switching the analysis run selector now preserves the current terrain layer display state (which layers are shown and which file/variant each is on) instead of resetting it, so different runs can be compared under the same display conditions. Added an in-panel scipy setup guide (Data Setup tab, shown only when scipy is missing) covering what it enables (Flow Buffer / DEM resampling / SHC) and how to install it safely; help doc (FOL.html) is now bilingual (English default, EN/JP switch) and documents the same guidance. Corrected the guide: scipy is bundled with QGIS on Windows (standard installer) but not on Linux -- install steps now use apt on Linux and python-qgis-ltr.bat on Windows instead of the unreliable sys.executable path (QGIS Windows bug: it resolves to qgis-bin.exe, not python.exe); README updated to match
    0.2.9 - Fix a critical issue: High Risk Areas now correctly applies the user-configured FS threshold
    0.2.8 - Final QGIS 3.x maintenance release focused on plugin-submission security hardening: verify Bandit scan passes with no findings, confirm no secrets are detected in the package, and keep the release limited to security/readiness updates without adding new user-facing features
    0.2.7 - Add flow direction method for Valley Terrain (TWI): choose D8 (single steepest), D-infinity, or MFD (multiple flow) via mutually-exclusive selector in the Valley Terrain parameters. Applies to TWI/valley delineation only; flow estimation stays D8. Help (FOL.html) and README updated with a method comparison (sample renders) and a note that the TWI threshold needs re-tuning per method
    0.2.6 - Remove .bandit config file (not used by QGIS scanner; flagged as hidden file)
    0.2.5 - Bundle defusedxml as vendor library; safe XML parsing on Windows QGIS where defusedxml is not pre-installed
    0.2.4 - Fix bandit security scan warnings: replace xml.etree.ElementTree with defusedxml (B405/B314); suppress false-positive urlopen scheme audits with nosec B310; suppress intentional bare-except patterns with nosec B110
    0.2.3 - Analysis run selector now sorted newest-first (descending order); replace blockSignals(True/False) pairs with QSignalBlocker to prevent signal lockout on exception; fix /vsimem/ memory leak in flow buffer: register mem_path immediately after gdal.Create() to ensure Unlink on cleanup; warn on startup if scipy is not installed
    0.2.2 - Fix persistent PermissionError on Windows when overwriting analysis results: add gc.collect() and processEvents() after layer removal to force OGR/GDAL handle release, with up to 5 retries at 0.3 s intervals
    0.2.1 - Improve out-of-range handling for non-VS DEM sources: show status message when canvas has no DEM coverage; warn once per DEM load when canvas partially extends beyond data bounds, then proceed silently on subsequent runs
    0.2.0 - Auto-resample high-resolution DEM/DSM (finer than 0.2 m) to 0.5 m before analysis; resample indicator added to Area Limit section; non-VS data sources (e.g. WebODM) no longer trigger re-acquisition dialog — analysis proceeds on available data extent only; DSM is clipped to canvas extent before use to ensure correct canopy-height integration
    0.1.9 - Fix PermissionError on Windows when overwriting analysis results: release locked layers from QgsProject before deleting the output folder
    0.1.8 - Add help link (FOL.html) to Analysis tab corner
    0.1.7 - Bundle laspy as vendor library (no manual installation required); add curvature and surface complexity analysis to terrain processing pipeline; fix DEM browser not showing web sources before a local folder is set
    0.1.6 - VS LP DSM: use LP/Original (all-return) where available, fall back to LP/Ground (all-return for 2019/2020/2021-east/2022); DSM creation confirmation dialog with skip option; WODMI export enabled without DSM (VS DEM only); download timeout extended to 600s; Grid tile caching; restored 2025 to Grid year priority
    0.1.5 - Add area limit check before analysis; add Stop Analysis button to cancel mid-run; README restructured to separate general features from Shizuoka-only features
    0.1.4 - Virtual Shizuoka point cloud support and webodm_importer export (Shizuoka Prefecture, Japan)
    0.1.3 - Global DEM support: AWS Terrarium tiles (worldwide, no registration); geographic CRS cell_size meter conversion (cos-lat correction); Web Mercator high-latitude distortion fix; analysis output written to hidden temp folder then single rename to reduce file manager wait; preview status bar shows area (ha); fix main canvas not refreshing when hiding analysis layers
    0.1.2 - DEM browser: add Copernicus GLO-30 link (global), hide GSI tiles outside Japan, auto UTM reproject after GSI tile fetch, CRS warning and Tips accordion in Data Setup
    0.1.1 - UI overhaul: English UI, parameter tabs restructured (1 item/row with hints), layout spacing fixed, tab height auto-fit
    0.1.0 - Initial release

tags=python,forestry,terrain,dem,slope,twi,stability,flow direction,mfd

homepage=https://github.com/raw-slnc/forestry_operations_lite
category=Raster
icon=icon.png
experimental=False
deprecated=False
server=False
