[general]
name=OccHab GeoNature
qgisMinimumVersion=3.28
qgisMaximumVersion=3.99
description=Offline-first data entry for GeoNature's OccHab module (habitat stations) from QGIS, with local SQLite storage and synchronisation to the GeoNature REST API.
version=0.2.5
author=Cédric Roy
email=it@ariegenature.fr
license=GPL-3.0-or-later

about=QGIS plugin to record data for GeoNature's OccHab module directly from QGIS.
    Digitise stations (point, line or polygon) and describe their habitats (HABREF
    cd_hab, cited name, nomenclatures, observers). Works offline: everything is
    stored in a local SQLite database and later synchronised (create / update /
    delete) with the GeoNature REST API. Polygon area and altitude (server DEM)
    are computed automatically. Business fields not exposed by OccHab
    (conservation stake, conservation status, cover) are captured in a normalised,
    re-extractable way. The plugin user interface is in French. Developed by
    ANA-CEN Ariege.

homepage=https://github.com/ANA-CEN-Ariege/occhab-qgis
tracker=https://github.com/ANA-CEN-Ariege/occhab-qgis/issues
repository=https://github.com/ANA-CEN-Ariege/occhab-qgis

hasProcessingProvider=no

tags=geonature,occhab,habitats,saisie,biodiversite,ana,postgis

category=Database
icon=resources/icons/occhab.svg

experimental=True
deprecated=False

changelog=0.2.5 - Reworked dock: per-station action toolbar above the list (+ right
    click menu), collapsible "Détails" in the station form, scrollable panel, geometry
    and new-station menus, and map click / double-click to open a station. Undo a
    geometry change ("Rétablir la géométrie précédente"). Export a JDD's habitat
    cartography (flat view, one row per habitat, official HABREF label) to GeoPackage
    and Shapefile. Dead-code cleanup and tests.
    0.2.4 - Observer field: type-ahead autocomplete (browse or type) with the
    chosen observers listed and removable. Retrieving server stations from the map
    now lets you select AFTER clicking (a message-bar button confirms) instead of
    requiring a prior selection.
    0.2.3 - Reuse an existing layer feature's geometry for a station (new or
    existing, reprojected to EPSG:4326); show each habitat's recovery percentage in
    the station's habitat list.
    0.2.2 - Open a station's form by clicking it on the map: double-click
    with any tool (e.g. Select), or single click with the Identify Features tool.
    0.2.1 - Bandit clean: the dock-width fallback logs instead of a bare
    try/except/pass.
    0.2.0 - Panel redesign: collapsible connection/dataset block, sync-state
    chips on the editable local list with a read-only server map context, station
    retrieval by map selection or text search, optimistic conflict detection on sync.
    New-station geometry limited to polygon/point; clearer labels.
    0.1.1 - Qt6 compatibility (fully-qualified/scoped Qt and QGIS enums,
    .exec()), Bandit security scan clean (reviewed false positives), English
    metadata with valid links, minimum QGIS version raised to 3.28.
    0.1.0 - First release: dockable panel, GeoNature connection via the QGIS
    authentication system, dataset (JDD) selection with autocomplete, offline
    station/habitat entry in a local SQLite database, native geometry digitising
    and vertex editing, HABREF search, nomenclatures and observers, automatic
    polygon area and altitude, read-only server context layer, import/restore from
    server, and full create/update/delete synchronisation with the GeoNature API.
