Offset Curve no longer works on geomerty on other layers #47882
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Digitizing
Related to feature digitizing map tools or functionality
What is the bug or the crash?
In the QGIS documentation https://docs.qgis.org/3.22/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html#offset-curves
Offset curves is described as working on features that are on other layers. I tested this in QGIS 2.18 and the tool did indeed work on features in other layers creating a copy. This seems would be very useful.
Currently (QGIS 3.24) this does not work. If you try to offset a geometry on another layer it says *Could not find a nearby feature in any vector layer
Once again implying that if could work on other layers.
I found this stack exchange where this change is discussed. https://gis.stackexchange.com/questions/321607/line-offset-tool-in-qgis-3-not-working-between-different-layers
My highly uneducated guess is that something changed when allowing the offset curve to work with polygons related to this issue: #23159
And this pull request: 2c65dbc
Forgive me. Just putting this here in case my guess leads someone in the right direction: The snapping was changed from All layers to Active layer on line 96. 2c65dbc#diff-23ad4a460e19c245275fdbaa62ab101103f5d9355f671e09919855b52b4d0e1f
Steps to reproduce the issue
Create 2 vector line layers. With 1 feature on each in different locations.
Turn on editing on layer 1.
Make sure that offset works by offsetting the feature on layer 1.
Try to offset the feature on layer 2.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
sagaprovider
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: