Skip to content

Boundary menu: + Polygon draws an obstacle (from #624) - #237

Merged
renatorgr merged 1 commit into
pulverizadorfrom
feat/obstacle-draw-polygon
Nov 14, 2026
Merged

renatorgr merged 1 commit into
pulverizadorfrom
feat/obstacle-draw-polygon

Conversation

@renatorgr

Copy link
Copy Markdown
Owner

Requested by Renato · project thread

What changed

"+ Polygon" in the boundary menu, beside "+ Circles": draw an obstacle of any shape (a ditch, a pond, a pile of stones) by tapping its corners on the map, then Finish. Undo, Finish and Cancel are on the draw toolbar; Esc cancels.

Nothing else changes. Merges cleanly with #236 (tick and delete obstacles).

Related issue

Official PR AgOpenGPS-Official#624 (waiting, after v1.0). Asked in the project thread.

Pre-submit checklist

  • dotnet build succeeds with no errors
  • dotnet test --filter ObstacleCircle: 12 passed (the 3 polygon tests included)
  • Tested on: Linux (.NET 10), headless app + Chromium at 1280x800, field "Quinta Torta": "+ Polygon", 6 corners of an L-shaped patch 20 x 12 m, Finish -> new row Inner 58, 0.018 ha, Hard, U-turn, selected; 2 corners + Finish -> refused, no row added

Screenshots

Picture in the project thread (aow-screenshots/polygon-obstacle-drawing.png): six corners tapped, Undo / Finish / Cancel.


Generated by Claude Code

Beside "+ Circles": tap the corners of a ditch, a pond or a patch on the map (with the imagery
under it), Undo, Finish and Cancel on the draw toolbar, Esc cancels. The host
(RemoteAddObstacleFromMapPoints, command boundary.obstacle.fromMapPoints) drops a repeated tap
on a corner and the closing tap, refuses a corner outside the field or a shape with no area, and
adds the obstacle as Hard with the U-turn choice, saved with the field and selected in the list.
Until now a non-round obstacle could only be recorded by driving round it or imported from KML.

Brought to the fork from feature/obstacle-draw-polygon (official PR AgOpenGPS-Official#624,
not merged yet), cherry-picked from e35212b onto pulverizador.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VKEBDFEFL88R13LC2YPU4t
@renatorgr renatorgr self-assigned this Nov 14, 2026
@renatorgr
renatorgr marked this pull request as ready for review November 14, 2026 19:25
@renatorgr
renatorgr merged commit 9c60410 into pulverizador Nov 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants