Tuesday, 4 April 2017

Unable to edit PostGIS DB using QGIS 2.10, works on 2.8


I have data in PostGIS DB which I need to edit with QGIS. I created a project file with QGIS 2.10. I was able to connect and open the PostGIS database, but ran into problems when I tried to edit DB with QGIS 2.10. Editing tools are greyed out and I can only add more polygons. After adding new polygons I'm unable to remove them. I tried to open this DB with same project file on QGIS 2.8 and found out that it works like a charm. I was able to edit data (like reshape polygons and change attributes) with QGIS 2.8 but not with 2.10. I installed 2.10 through OSGeo4W (64-bit) and 2.8 from standalone package and I'm running this circus on Windows 7 64-bit.


What might be the problem? Is it PostGIS related or is there something wrong with QGIS 2.10 settings?


QGIS_2_10_editing_problem



Answer




Please define a primary key on your layer if it's missing. QGIS 2.10 doesn't allow you to edit layers without primary key - it doesn't say a word about it, which I find a UX/UI fail.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...