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?
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