-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Profile Tool] Introduce custom tolerance for vector layers #59215
Conversation
22f8f74
to
5e298ac
Compare
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
@nyalldawson Gentle ping |
@ptitjano sorry, this got buried in the wasteland that is page 2 of the QGIS pull request queue 😆 I've no strong objections to this approach! I would like to see that we default to zero tolerance for line/polygon layers, so maybe those could default to having a custom tolerance enabled and set to zero. (This would avoid users needing to do a lot of configuring on large projects to get the old behavior back, and effectively make tolerance handling for line/polygons opt-in) |
5e298ac
to
4e4dd1c
Compare
I have updated this PR. Custom tolerance is now enabled by default and set to 0 for |
Tests failed for Qt 6One or more tests failed using the build from commit 77bb2db vector_lines_as_fill_above_surface_limit_tolerancevector_lines_as_fill_above_surface_limit_toleranceTest failed at testRenderProfileAsSurfaceFillAboveLimitTolerance at tests/src/python/test_qgsvectorlayerprofilegenerator.py:2816 Rendered image did not match tests/testdata/control_images/profile_chart/expected_vector_lines_as_fill_above_surface_limit_tolerance/expected_vector_lines_as_fill_above_surface_limit_tolerance.png (found 4530 pixels different) The full test report (included comparison of rendered vs expected images) can be found here. Further documentation on the QGIS test infrastructure can be found in the Developer's Guide. |
Tests failed for Qt 5One or more tests failed using the build from commit 77bb2db vector_lines_as_fill_above_surface_limit_tolerancevector_lines_as_fill_above_surface_limit_toleranceTest failed at testRenderProfileAsSurfaceFillAboveLimitTolerance at tests/src/python/test_qgsvectorlayerprofilegenerator.py:2816 Rendered image did not match tests/testdata/control_images/profile_chart/expected_vector_lines_as_fill_above_surface_limit_tolerance/expected_vector_lines_as_fill_above_surface_limit_tolerance.png (found 4530 pixels different) The full test report (included comparison of rendered vs expected images) can be found here. Further documentation on the QGIS test infrastructure can be found in the Developer's Guide. |
4e4dd1c
to
77bb2db
Compare
This allows to define a custom tolerance. If this tolerance is enabled, then this tolerance is used instead of the one defined in the elevation profile widget. This custom tolerance is enabled and set to 0 by default for Lines and Polygons. Indeed, most of the time, only want to use the tolerance for points.
77bb2db
to
d9b9b44
Compare
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 21 days. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the QGIS project can do to help push this PR forward please let us know how we can assist. |
@ptitjano |
Description
This tries to solve #58016 as suggested by @benoitdm-oslandia
The idea is to be able to define a custom tolerance by adding a
custom tolerance
property. If set, this overrides the global tolerance parameter defined in the elevation profile widget.This is only implemented for vector layers at the moment since I'm not sure this is the right approach.
Any thoughts?