Skip to content

Accept polygon layers as rotation reference#102

Merged
elfpkck merged 1 commit into
mainfrom
polygon-as-reference
Jun 6, 2026
Merged

Accept polygon layers as rotation reference#102
elfpkck merged 1 commit into
mainfrom
polygon-as-reference

Conversation

@elfpkck

@elfpkck elfpkck commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Both the Processing algorithm and the interactive map tool now take a line or polygon layer as the reference; polygon boundary rings are walked as polylines for closest-segment math. Renames src/line.pysrc/reference.py (LineReferenceFeature, LineLayerReferenceLayer) and the Processing parameter LINE_LAYERREFERENCE_LAYER (breaking — saved models must be updated). When both a line and polygon overlap under the click, the line wins.

Both the Processing algorithm and the interactive map tool now take a line
or polygon layer as the reference; polygon boundary rings are walked as
polylines for closest-segment math. Renames `src/line.py` →
`src/reference.py` (`Line` → `ReferenceFeature`, `LineLayer` →
`ReferenceLayer`) and the Processing parameter `LINE_LAYER` →
`REFERENCE_LAYER` (breaking — saved models must be updated). When both a
line and polygon overlap under the click, the line wins.
@elfpkck elfpkck self-assigned this Jun 6, 2026
@elfpkck elfpkck enabled auto-merge (squash) June 6, 2026 23:23
@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 61.76471% with 52 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@a222383). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
PolygonsParallelToLine/src/map_tool.py 24.13% 44 Missing ⚠️
PolygonsParallelToLine/src/reference.py 84.61% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #102   +/-   ##
=======================================
  Coverage        ?   52.61%           
=======================================
  Files           ?       13           
  Lines           ?      802           
  Branches        ?      117           
=======================================
  Hits            ?      422           
  Misses          ?      365           
  Partials        ?       15           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@elfpkck elfpkck merged commit d2b507a into main Jun 6, 2026
7 checks passed
@elfpkck elfpkck deleted the polygon-as-reference branch June 6, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant