Bug report #15081

Impossible to clear geometry of feature from a shapefile

Added by Harrissou Santanna almost 8 years ago. Updated almost 8 years ago.

Status:Closed
Priority:Normal
Assignee:Even Rouault
Category:Data Provider/OGR
Affected QGIS version:2.14.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:23023

Description

Select all vertices of a (already saved) feature in a shapefile, click DEL to erase them.
They get wiped and message bar shows: "Geometry has been cleared. Use Add part tool to set geometry for this feature".
Click to save and your geometry reappears with this critical message from bar: "Layer XXXX: OGR error creating geometry for feature X: ".
At the same time, you can add geometryless feature from the attribute table dialog.
This looks no coherent.

Associated revisions

Revision 4c56fa6e
Added by Even Rouault almost 8 years ago

[OGR provider] Make changeGeometryValues() accept null geometry

Fixes #15081

Revision 72d75ff4
Added by Even Rouault almost 8 years ago

[OGR provider] Make changeGeometryValues() accept null geometry

Fixes #15081

History

#1 Updated by Even Rouault almost 8 years ago

  • Assignee set to Even Rouault
  • Category changed from Digitising to Data Provider/OGR

#2 Updated by Even Rouault almost 8 years ago

  • Status changed from Open to Closed

#3 Updated by Even Rouault almost 8 years ago

  • Resolution set to fixed/implemented
  • % Done changed from 0 to 100

#4 Updated by Harrissou Santanna almost 8 years ago

Thanks, Even.

Also available in: Atom PDF