Skip to content

Longitudinal Profile: handle unnecessary warnings on different conditions while drawing second line #11641

@rowheat02

Description

@rowheat02

Description

When using the Longitudinal Profile plugin with the “Draw Line” tool, the first line works fine. However, when drawing a new line, a warning message appears repeatedly with each point added:

https://github.com/user-attachments/assets/b388f1ce-c353-4be2-bcea-1fd3e4ac84e4
https://github.com/user-attachments/assets/2886faf3-3567-4bba-9296-138cdb0dee72

How to reproduce

Case 1

  • Open the Longitudinal Profile plugin.
  • Use “Draw Line” to draw the first line, which works normally.
  • Try drawing a second line.
  • Observe repeated warning messages while clicking on the map to draw.
  • Error message: "Line feature was not found at selected point."

Case 2

  • Select some layer on TOC.
  • Open the Longitudinal Profile plugin.
  • Use “Draw Line” to draw the first line, which works normally.
  • Try drawing a second line.
  • Observe repeated warning messages while clicking on the map to draw.
  • Error message: "Please select a layer first."

Expected Result

  • The user should be able to draw next line without seeing the any type of warnings.

Current Result

  • The warning appears on every point added after the first line.

Other useful information

  • Occurs on DEV and QA instances.
  • Example context: Longitudinal Profile
  • Possible cause: plugin’s epic triggers profile request while in drawing mode.

Metadata

Metadata

Assignees

Labels

BackportNeededCommits provided for an issue need to be backported to the milestone's stable branchbug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions