Bug report #9770
Removal of nodes can create invalid linestrings
|Affected QGIS version:||2.2.0||Regression?:||No|
|Operating System:||GNU/Linux||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18312|
In QGIS 2.2 after deleting node of a linestring with only 2 vertices on a postgis layer and saving that, the layer disappears. And now has lines with one vertex...?
In that case following query returns rows:
SELECT sum(ST_NPoints(the_geom)) as count_nodes,gid FROM way_err group by gid having sum(ST_NPoints(the_geom))=1
When those records are deleted the layer goes back to normal in QGIS.
In QGIS 2.0 in the same layer does not allow the vertex removal.