grass icon indicating copy to clipboard operation
grass copied to clipboard

[Bug] Profile Analysis Tool Segment break points position

Open ecodiv opened this issue 1 year ago • 4 comments

Describe the bug When creating a profile with break points with the Profile Analysis Tool, I would expect the segment break points to be shown on the profile line. They are, however, positioned on the x=0 axis (see attached screenshot).

To Reproduce Steps to reproduce the behavior:

  1. Open raster lay
  2. Open the Profile Analysis Tool from the Map Display toolbar
  3. Draw a profile line, including at least one breakpoint
  4. See error

Expected behavior I would expect the segment break points to be shown on the profile line instead of all on the x=0 axis.

Screenshots ksnip_20240212-114455

System description (please complete the following information):

  • Operating System: Linux, Ubuntu 22.04
  • GRASS GIS version 8.4.0dev, code revision 53c362dbd1

Additional context I have observed this behavior in earlier versions as well

ecodiv avatar Feb 12 '24 10:02 ecodiv

I wasn't successful with your reproducible example. All my line segments breaks triangle points lies on the profile line.

Tested with elevation raster map from the NC basic location.

tmszi avatar Feb 12 '24 20:02 tmszi

@tmszi You are right. Using that data, it works as expected.

The difference is that in my example I used 'unprojected' data (WGS84, EPSG 4326). It seems the tool does not properly handle such data?

ecodiv avatar Feb 13 '24 09:02 ecodiv

@tmszi You are right. Using that data, it works as expected.

The difference is that in my example I used 'unprojected' data (WGS84, EPSG 4326). It seems the tool does not properly handle such data?

This will require a more detailed analysis.

tmszi avatar Feb 13 '24 13:02 tmszi

I tested with a DEM in a 4326 location and I get the same behavior that @ecodiv describes, in NC sample data (i.e., a projected location) the breaks are on the profile curve.

veroandreo avatar Feb 13 '24 14:02 veroandreo