1

I want to edit PostGIS layers within QGIS and before that, I changed a layer using ST_Difference. Now, I can select QGIS' Edit Feature after importing it from PostGIS but only for some layers it is possible (which I haven't changed) to change their vertices with the Vertex Tool.

I checked SRID, Geometry Type and so on but couldn't find a difference. Has anyone ever faced the same problem?

sequoia
  • 216
  • 1
  • 7
  • 2
    a common issue with derived layers is if they don't have a primary key defined – JGH Mar 17 '20 at 14:55

1 Answers1

2

I figured out fast, and for the others: As already stated by JGH and here, a primary key has to be defined and since my table had no and even no natural primary, I had to summarize my geoms to get one. Thanks!

sequoia
  • 216
  • 1
  • 7