You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 6451
Affected QGIS version: master
Redmine category:grass
Assignee: Radim Blazek
Import in GRASS the sample (very simple) attached vector.
It has two partially overlapping polygons, so in GRASS you will get a 1_polygon and a 2_polygon.
The reported number of features is right (4), but using QGIS the table of attributes shows just 3 records (should be 4, as per the non topological vector model).
Of course if reexporting the vector to shapefile, the result will have 4 features and 4 records.
I remember that we talked about it in Essen and it was like you described. I tried again now and I have got 4 records in the table but 1xA and 3xB instead of 2xA and 2xB. It seems that it changed with new vector iterators but it is still buggy.
The problem was that QgsGrassFeatureIterator was using GRASS geometry id as QGIS feature id, but GRASS geometry may be connected with multiple database records through multiple categories. I have changed it to use
There is potential problem with such ids however. It wont work if such features are used (exported to different format, processed by plugin) by an application which does not support longlong feature ids. I was considering to scan first all geometries to find maximum number of cats per feature to multiply only by necessary factor (and use cat index within geometry instead of cat), but that would slow down start up. That will be probably necessary if you find it to be a problem.
In theory, the geometries linked to the same attributes, i.e. with the same cat, could be represented as multi type (multipoint,multiline,multipolygon) but because there is no limit how may geometries may have the same cat, it could result in huge geometries which could not be effectively handled by QGIS. This could be also scanned at beginning however and used if possible (most cases).
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 6451
Affected QGIS version: master
Redmine category:grass
Assignee: Radim Blazek
Import in GRASS the sample (very simple) attached vector.
It has two partially overlapping polygons, so in GRASS you will get a 1_polygon and a 2_polygon.
The reported number of features is right (4), but using QGIS the table of attributes shows just 3 records (should be 4, as per the non topological vector model).
Of course if reexporting the vector to shapefile, the result will have 4 features and 4 records.
The text was updated successfully, but these errors were encountered: