Open jmkerloch opened 1 year ago
Sounds like a good option to me!
A couple of notes:
Thanks for the feedback.
In my POC I was creating a QgsElevationProfileCurveVertexItem
that inherits QgsPlotCanvasItem
like the object mCrossHairsItem
.
In the void paint( QPainter *painter ) override
method I'm drawing the line of all profile curve vertex.
I don't understand how I should implement this in the core classes.
@nyalldawson I guess the direction of my poc with QgsPlotCanvasItem
is not valid if I want to integrate it in the core classes.
Is it possible to provide some guidance to add these lines to the core classes ?
I understand how the profiles are generated with QgsAbstractProfileGenerator
but I don't see how I can add other thing to the layouts.
Should I add the render in void QgsProfilePlotRenderer::render( QgsRenderContext &context, double width, double height, double distanceMin, double distanceMax, double zMin, double zMax, const QString &sourceId )
Elevation profile : sub-section indicators
Date 2023/01/05
Author Oslandia
Contact jean-marie.kerloch at oslandia dot com
maintainer @jmkerloch
Version QGIS 3.28
Summary
In its current iteration, the Elevation Profile allows users to draw connex muti-segmented traces over the canvas which results in connex muti-planar profiles.
These complex, "sub-paneled" profiles are very useful although can be also be fairly confusing when the geometry of the trace counts more than 3-4 vertices.
In order to improve spatial awareness, we intend to add an option to display the coordinates of each trace vertex to the profile view alongside the heading of each sub-panel.
Doing so would make Elevation Profiles fully explicit in their spatial location such that one could be placed back on a map even when the original trace is lost.
Profile trace vertices location indicator (optional checkbox)
Indicate where the profile vertices are located on the profile :
Profile sub-panel heading indicator (optional checkbox)
Indicate the bearing of each sub-panel on the profile:
Proposed Solution
Here is a screenshot of a Proof Of Concept:
Display of these indicator will be managed in settings menu of the toolbar, right after the tolerance parameter.
Affected Files
Performance Implications
Not Applicable
Further Considerations/Improvements
Not Applicable
Backwards Compatibility
The profile creation should not be changed by this new functionnality.
Issue Tracking ID(s)
Votes
(required)