[general]
name=Divide Polygon
qgisMinimumVersion=3.22
qgisMaximumVersion=4.99
description=Divide or split polygons into equal-area compact 2D blocks, segments, or 1D parallel strips — auto-angle, concave & hole-safe, true ground areas in any CRS (QGIS 3 & 4).
version=1.0.0
author=Mustafa Mohammedain
email=<your-email@example.com>
about=Divide Polygon splits and subdivides polygon features into equal-area parts, compact 2D blocks/segments, or 1D parallel strips using a fast analytical Green's-theorem geometry engine with zero external dependencies.

    Key features:
    - Analytical O(V) Green's-theorem area integration, exact strip balancing, and vertex-snapped cuts for high equal-area accuracy and minimal slivers.
    - Dual layout engine: 2D Compact Grid (square-ish equal-area blocks, default) AND 1D Parallel Strips in one plugin.
    - Flexible sizing: divide by exact equal part count (N) OR by target area in m2, ha, km2, acres, ft2, or mi2 (Target, Max, or Min rules).
    - Clean Basic / Advanced UI: pick a loaded QGIS layer or open a polygon file directly from disk, preview cuts live on the map canvas, and save to a temporary layer or file without overwriting unrelated GeoPackage layers.
    - Automatic optimal cut orientation (rotating calipers + 1-degree refinement) or fixed angle (0-180 deg).
    - Concave bend zone decomposition for L-, U-, and dog-leg corridors with exact-area parallel chord balancing, plus full interior hole and MultiPolygon preservation.
    - Optional 4-way grid junction alignment, block overlap (for drone/survey blocks), and optional diagnostic output fields.
    - True ground areas in BOTH projected CRSs (including Web Mercator EPSG:3857) AND geographic CRSs (WGS 84, ETRS89, NAD83, etc.) via QgsDistanceArea and local ellipsoidal Lambert Azimuthal Equal-Area frames.
    - Native Processing Toolbox algorithm ("Divide Polygons") with Basic and collapsible Advanced parameters for Model Designer, Batch Processing, and PyQGIS.
    - Pure Python using only standard libraries and PyQGIS; full QGIS 3.22+ (Qt5) and QGIS 4.x (Qt6) compatibility.
changelog=1.0.0:
    - Initial public release for QGIS 3.22+ (Qt5) and QGIS 4.x (Qt6).
    - Analytical Green's-theorem equal-area partitioning engine with 2D Compact Grid and 1D Parallel Strips layouts, auto-orientation, exact strip balancing, concave bend zones, and true ground-area support across projected (including EPSG:3857) and geographic CRSs.
    - Interactive Basic/Advanced dialog with disk-file input, live map canvas preview, background QgsTask execution, and memory or GeoPackage/GeoJSON/Shapefile output.
    - Native Processing Toolbox provider and "Divide Polygons" algorithm with clean default attributes and optional diagnostic fields.
category=Vector
icon=icon.png
tags=divide,split,polygon,equal area,equal parts,segments,partition,subdivide,grid,strips,parcel,cadastral,sampling,blocks,vector,processing,qgis4
hasProcessingProvider=yes
experimental=False
deprecated=False
homepage=https://github.com/MustafaMohammedain/divide-polygon#readme
repository=https://github.com/MustafaMohammedain/divide-polygon
tracker=https://github.com/MustafaMohammedain/divide-polygon/issues
license=GNU GPL v3 or later
