-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Field Calculator cannot update certain PostGIS tables #19808
Comments
Author Name: Giovanni Manghi (@gioman) does it happen on qgis 2.6? if not with shapes, what formats are affected?
|
Author Name: Thomas Kandler (Thomas Kandler) Yes, 2.6 is also afflicted. Regarding the formats: Postgres Database with PostGIS extension, geometry column is filled with (Single) Polygons in WKB format. I hope, I understood your question correctly. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) Just tested on PostGIS layers (polygon and multipolygon) of my own and cannot replicate the issue. Does it happens on any layer you edit? or just specific ones? what postgre/postgis versions are you using? Did you noticed the same issue also in older qgis releases?
|
Author Name: Thomas Kandler (Thomas Kandler) Postgres 9.3.1 & PostGIS 2.1.0 Does happen on any layer (both, containing (multi) geometries and no geometries). We can use the same database on QGIS 2.2 with the field calculator working fine. Starting with 2.4 the bug pops up. Tables are created with
May this be of any relevance? |
Author Name: Giovanni Manghi (@gioman)
not sure, what happens if instead you import a vector using one of the standard tools (db manager, spit, shp2pgsql, ogr2ogr, etc.) and then edit it and do the above operation? |
Author Name: Thomas Kandler (Thomas Kandler) Imported a table with DB Manager Import Tool -> Field Calculator works fine. What could be a possible cause of this behaviour? When comparing the tables with and without Field Calculator Error, the only difference are quotation marks on the primary key in the table which was imported using DB Manager.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) Thomas Kandler wrote:
are previous qgis releases affected? |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Thomas Kandler (Thomas Kandler) Giovanni Manghi wrote:
Thomas Kandler wrote:
|
Author Name: Giovanni Manghi (@gioman) Thomas Kandler wrote:
so before qgis 2.4 (qgis <= 2.2) it was ok in the same conditions, right? |
Author Name: Thomas Kandler (Thomas Kandler) Giovanni Manghi wrote:
Yes, exactly. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Thomas Kandler (Thomas Kandler)
Original Redmine Issue: 11538
Affected QGIS version: 2.6.0
Redmine category:field_calculator
Steps:
QGIS will not update the column but rather append a new (unnamed) column at the end of the attribute table which holds the value for any row in the table. The problem does not occur when working with .shp files.
Related issue(s): #18374 (relates), #19836 (relates), #20140 (duplicates)
Redmine related issue(s): 9844, 11574, 11932
The text was updated successfully, but these errors were encountered: