[general]
name=Cutbacks Detector
qgisMinimumVersion=3.16
description=Find oversized segments (gaps) and sharp-angle vertices (kinks) in line and polygon layers.
about=Cutbacks Detector inspects line and polygon vertices for two kinds of defect. In "gaps" mode it flags every segment whose length between two consecutive vertices exceeds a user-defined threshold. In "kinks" mode it flags every vertex where the line changes direction by at least a chosen number of degrees - from a gentle bend in a should-be-straight line to a spiky hairpin - the breaks that sit between short segments and that a distance check cannot catch. For polygons every ring (the outer boundary and any inner holes) is checked, including the corner that closes each ring. Distances are measured with a CRS-aware QgsDistanceArea (works for projected and geographic CRSs) or in raw map units. Results are delivered as a styled, severity-coloured point layer on the canvas plus optional CSV and GeoJSON reports. Processing runs on a background task with a progress bar and a working Cancel button, so large layers stay responsive.
version=1.5.0
author=Mustafa Nehad Elghazaly
email=mostafanehad188@gmail.com

tracker=https://github.com/ghazaaly23/cutbacks_detecator/issues
repository=https://github.com/ghazaaly23/cutbacks_detecator
homepage=https://github.com/ghazaaly23/cutbacks_detecator

category=Vector
icon=icon.svg
experimental=False
deprecated=False

tags=vector,line,linestring,polygon,ring,boundary,vertices,angle,kink,sharp,quality,qa,topology,gap,break,cadastre,validation

changelog=1.5.0 - Fix cutbacks now lets you choose which severities to straighten (Low/Medium/High/Critical), each shown with its count, so you can fix some classes and leave the rest.
    1.4.0 - Added a "Fix cutbacks" button: after a kinks run it straightens the flagged vertices by removing them, editing the source layer through an undoable session (Ctrl+Z / Ctrl+S). Warns about shared-boundary slivers.
    1.3.0 - Kink mode now uses a minimum turn angle (deflection): flag a vertex when the line changes direction by at least N degrees. Catches gentle bends in should-be-straight lines, not only sharp spikes. Severity and labels reflect the turn angle.
    1.2.0 - Added "sharp angles (kinks)" detection mode: flags vertices whose angle is sharper than a chosen degree limit, the spiky breaks a distance check misses. New detection-mode selector, angle output layer/CSV, and severity by sharpness.
    1.1.0 - Added polygon layer support: every ring (outer boundary and inner holes) is scanned, including the closing segment. Layer picker now accepts line and polygon layers.
    1.0.0 - Initial release. Background detection task, CRS-aware measurement, severity-coloured point output, CSV and GeoJSON export, selected-features support and a results safety cap.
