Opened 14 years ago
Closed 13 years ago
#2968 closed bug (fixed)
Wrong handling (shapefile) features with null geometry
Reported by: | borysiasty | Owned by: | mhugent |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | Version 1.6.0 |
Component: | Data Provider | Version: | |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
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?
The export of geometryless features is fixed in r14712. 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.