Bug report #2968

Wrong handling (shapefile) features with null geometry

Added by Borys Jurgiel almost 14 years ago. Updated over 13 years ago.

Assignee:Marco Hugentobler
Category:Data Provider
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13028


The support for features without geometry is partial. Some problems were solved in r11257 / #1290 , however, it still causes serious issues. When exporting such layers, features without geometry are discarded, what should be considered as obvious data corruption.
Furthermore, QgsDataProvider.featureAtId() crashes qgis for such features.

Personally I never use such layers so I can't tell why people use them ;) but I know people do and the layers are valid Shapefiles, as ArcGIS creates them. Maybe the table join branch is a good opportunity to cosider better support for such layers?


#1 Updated by Marco Hugentobler over 13 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

The export of geometryless features is fixed in 8868c952 (SVN r14713). The crash in featureAtId does not seem to happen for me. Perhaps it was fixed in the meantime. Please reopen the bug if you still observe crashes with geometryless features in featureAtId() method.

Also available in: Atom PDF