-
-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tolerance for lines and polygons - elevation profile #9385
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,8 @@ At the top of the :guilabel:`Elevation Profile` panel, a toolbar provides you wi | |
- Allows to render distances in the profile chart with units other than the map canvas units. | ||
* - :menuselection:`--> Tolerance` | ||
- | ||
- Sets how far from the actual profile line a point can reside within to be included in the results. | ||
- Sets how far from the actual profile line a feature (point, line, polygon, etc.) | ||
can reside to be included in the results. | ||
Uses the map units and is ignored by other layer or geometry types. | ||
* - |dock| :sup:`Dock Elevation Profile View` | ||
- | ||
|
@@ -194,8 +195,16 @@ To create a profile view, you can: | |
|
||
#. Under |options| :sup:`Options` drop-down menu, you can set the :guilabel:`Tolerance` value. | ||
This value is used to create a flat buffer around the elevation profile line, visible in the main map canvas. | ||
Any visible point feature overlapping that buffer will be captured in the plot canvas. | ||
Any visible feature (point, line, polygon, etc.) overlapping that buffer will be captured in the plot canvas. | ||
|
||
.. note:: **Limitations - Line and polygon extrusion** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @benoitdm-oslandia thanks for the notes. There are a few unclear points to me:
Back to the note, I think we could hide the internal development explanations and simply mention incompatibilities between/disabling/ignoring of polygon extrusion when tolerance is on. And should it be here or in the layer elevations properties, next to the extrusion option? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
extrusion works fine with points or lines with/without tolerance.
it is about the extrusion output: it becomes an 3D volume we have to reproject in the 2D plane of the profile elevation canvas. This introduces new challenges in object representation as we want to have a fast rendering. Also the current code is not easily understandable nor easily optimizable, this kind of new feature may kill this tool.
This choice allows to display the intersected objects without having rendering issues.
The checkbox is just ignored (not disabled) when this condition is met: 3D polygon+extrusion+tolerance. The extrusion feature is temporally disabled for this layer.
I think issue explanation is a good thing for the user as he can understand he asks for something not trivial and it is not a new issue to report. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @benoitdm-oslandia for the feedback
My point was more about "extruded" line. if both line and polygon geometries are hard to render but we finally disable only polygon, I guess it is because we solve hardness of lines and don't need to mention it in docs anymore. As you replied:
And the title of the note should be adjusted.
I added a last line as I understand that it is the extrusion that is ignored, not the polygon which I think is somehow taken into account.
OK. Given that the extrusion is ignored (and not disabled aka unchecked in the elevation properties), this is a tolerance "feature", so we should mention it only in the profile docs. |
||
|
||
In the |elevationscale| :guilabel:`Elevation` properties tab of a layer, it is possible to activate the extrusion. | ||
This works fine for points or lines in any case. | ||
However, when tolerance is enabled and for 3D lines or 3D polygons, | ||
extrusion is not trivial because it is equivalent to representing a 3D object | ||
(the 3D polygon is re-projected into a 2D polygon in the elevation profile view but with the extrusion dimension). | ||
Thus, right now, polygon extrusion is disabled when tolerance is enabled. | ||
|
||
.. _`elevation_profile_interaction`: | ||
|
||
|
@@ -321,6 +330,8 @@ to export an elevation profile, allowing you to reuse the plots in another softw | |
:width: 1.5em | ||
.. |dock| image:: /static/common/dock.png | ||
:width: 1.5em | ||
.. |elevationscale| image:: /static/common/elevationscale.png | ||
:width: 1.5em | ||
.. |fileSaveAs| image:: /static/common/mActionFileSaveAs.png | ||
:width: 1.5em | ||
.. |identify| image:: /static/common/mActionIdentify.png | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "etc." refer to? Here and later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any geometrical object in the future. For now: point, line, polygon, pointcloud. I am not really sure for meshes, but support will be added for polyhedralsurfaces.