QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

"native:snapgeometries" algorithm doesn't snap vertices for last segment in ring

Open blacktesta opened this issue 1 year ago • 7 comments

What is the bug or the crash?

The title speaks for itself. When I use snapgeometries algorithm it snaps most of vertices but always not every one. I attached sample gpkg for reproducing the problem. snap_geometry_test.zip

Steps to reproduce the issue

  1. Load 2 layers from snap_geometry_test.gpkg
  2. Use "native:snapgeometries" algorith for layer_1 with layer_2 as reference layer, tolerance 0.01 ( or even 10) and first behavior (or any other)
  3. See result. No new vertices added to layer_1.

Versions

QGIS version 3.28.2-Firenze QGIS code revision b47e00ba601 Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.6.1 PROJ version 9.1.1 EPSG Registry database version v10.076 (2022-08-31) GEOS version 3.11.1-CAPI-1.17.1 SQLite version 3.39.4 PDAL version 2.4.3 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.13.1 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

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

New profile

  • [X] I tried with a new QGIS profile

Additional context

P.S. sorry if I misunderstand something

blacktesta avatar Jan 13 '23 05:01 blacktesta