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

Issue with Edit Feature in-place for Split with Lines #57924

Open
2 tasks
askaribaloch opened this issue Jun 28, 2024 · 2 comments
Open
2 tasks

Issue with Edit Feature in-place for Split with Lines #57924

askaribaloch opened this issue Jun 28, 2024 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@askaribaloch
Copy link

What is the bug or the crash?

  • split with line feature when edit in place is true gives this error for primary key present in database

`Could not commit changes to layer roads_v5

Errors: ERROR: 4 feature(s) not added.

Provider errors:
PostGIS error while adding features: ERROR: duplicate key value violates unique constraint "pak_roads_v5_pkey"
DETAIL: Key (id)=(1311202) already exists.
`

  • tool must produce new primary key id's for in place feature editing in postgis or database layers where primary key is present

Steps to reproduce the issue

image

Versions

QGIS version
3.8.2-Zanzibar
QGIS code revision
4470baa
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
2.4.1
Running against GDAL/OGR
2.4.1
Compiled against GEOS
3.7.2-CAPI-1.11.0
Running against GEOS
3.7.2-CAPI-1.11.0 b55d2125
PostgreSQL Client Version
10.8
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
5.2.0
Running against PROJ
Rel. 5.2.0, September 15th, 2018
OS Version
Windows 10 (10.0)

Supported QGIS version

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

New profile

Additional context

image
tool unable to produce new id for split feature tool when used on postgis line layer

@askaribaloch askaribaloch added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jun 28, 2024
@askaribaloch
Copy link
Author

please review above behaviour using postgis database layer with edit feature in place enabled for split with lines

@agiudiceandrea agiudiceandrea added the Processing Relating to QGIS Processing framework or individual Processing algorithms label Jun 29, 2024
@askaribaloch
Copy link
Author

askaribaloch commented Jul 18, 2024

I have reported the issue with the PostGIS layer, which is a line feature with an ID field that has a primary key enabled and uses a sequence for the next value.

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! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

2 participants