Skip to content

Check geometry (angle) does not check whether feature ID is unique #61398

Description

@DelazJ

What is the bug or the crash?

In the "Check geometry (angle)" algorithm, provide a layer and, for the "Unique feature identifier" parameter, provide a field that contains duplicate values.
The algorithm will run successfully and generate expected output layers.
Now try to use the "Fix geometry (angle)" algorithm on your data, filling the same field as unique identifier.
It may fail because of duplicate values.

We probably should check at the start that the field is really a unique identifier.

Steps to reproduce the issue

See above

Versions

QGIS version3.43.0-Master
QGIS code revisiond3a8b799681
 
Libraries
Qt version5.15.8
Python version3.11.2
GDAL version3.9.3
PROJ version9.1.1
EPSG Registry database versionv10.076 (2022-08-31)
GEOS version3.11.1-CAPI-1.17.1
SQLite version3.40.1
PDAL version2.8.3
PostgreSQL client version15.12
SpatiaLite version5.0.1
QWT version6.1.4
QScintilla2 version2.13.3
OS versionDebian GNU/Linux 12 (bookworm)
This copy of QGIS writes debugging output.
 
Active Python plugins
MemoryLayerSaver5.0.2
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99

Supported QGIS version

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

New profile

Additional context

No response

Metadata

Metadata

Assignees

Labels

BugEither a bug report, or a bug fix. Let's hope for the latter!ProcessingRelating to QGIS Processing framework or individual Processing algorithms

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions