Skip to content
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

Offset Curve no longer works on geomerty on other layers #47882

Closed
2 tasks done
baswein opened this issue Mar 19, 2022 · 1 comment
Closed
2 tasks done

Offset Curve no longer works on geomerty on other layers #47882

baswein opened this issue Mar 19, 2022 · 1 comment
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

Comments

@baswein
Copy link
Contributor

baswein commented Mar 19, 2022

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
image
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>
QGIS version 3.24.0-Tisler QGIS code revision 6b44a42
Qt version 5.15.2
Python version 3.9.5
GDAL/OGR version 3.4.1
PROJ version 8.2.1
EPSG Registry database version v10.041 (2021-12-03)
GEOS version 3.10.2-CAPI-1.16.0
SQLite version 3.37.2
PDAL version 2.3.0
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.3
QScintilla2 version 2.11.5
OS version Windows 10 Version 2009
       
Active Python plugins
db_manager 0.1.20
grassprovider 2.12.99
MetaSearch 0.3.6
processing 2.12.99
sagaprovider 2.12.99
QGIS version 3.24.0-Tisler QGIS code revision [6b44a42](https://github.com/qgis/QGIS/commit/6b44a420) Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.4.1 PROJ version 8.2.1 EPSG Registry database version v10.041 (2021-12-03) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.37.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.3 QScintilla2 version 2.11.5 OS version Windows 10 Version 2009

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

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@baswein baswein added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 19, 2022
@Pedro-Murteira Pedro-Murteira added Editing Map Tools Related to non-digitizing map tools labels Mar 19, 2022
@alexbruy alexbruy added Digitizing Related to feature digitizing map tools or functionality and removed Map Tools Related to non-digitizing map tools Editing labels Oct 20, 2023
@baswein
Copy link
Contributor Author

baswein commented Nov 13, 2024

After more experimentation I figured out that it does work if you hold ctrl and have snapping enabled.
Added documentation and help text.
#59438
github.com/qgis/QGIS-Documentation/pull/9382

@baswein baswein closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants