Skip to main content
11 events
when toggle format what by license comment
May 20, 2020 at 6:20 comment added ahmadhanb @Aaron Great! I am glad the problem is solved.
May 20, 2020 at 6:09 comment added Aaron I appreciate the answer. I needed to convert multipart to singlepart and then follow your instructions. To generate the unique ID, I used @row_number (QGIS 3) rather than $id.
May 20, 2020 at 6:07 vote accept Aaron
May 15, 2020 at 11:43 vote accept Aaron
May 15, 2020 at 16:11
May 15, 2020 at 10:28 comment added ahmadhanb @she_weeds if this is the case, then the solution will to convert the polygon to singlepart polygon type.
May 15, 2020 at 8:38 comment added she_weeds OP's issue looks more like this: i.imgur.com/S1PLD3m.gif Where the "2C" feature has only one row in the attribute table but three parts. Your solution won't fix this as it is not possible to assign a unique identifier to each part, that the auxiliary storage can access.
May 15, 2020 at 8:25 comment added she_weeds I don't think that answers the question. Your layer may be a multipolygon shapefile, but it doesn't change the fact that the features you are editing have one and only one exterior boundary (part) per feature. They could have more, because the layer allows for multipolygon geometries, but these features don't. I am pretty sure OP's issue is with features that have multiple parts (i.e. more than one exterior boundary).
May 15, 2020 at 5:15 comment added ahmadhanb @she_weeds My polygon is multipolygon shapefile, please check the newly added image in my answer. The explanation is long, but it is best described by mgri in his answer to the question Understanding difference between Polygon and Multipolygon for shapefiles in QGIS?
May 15, 2020 at 5:08 history edited ahmadhanb CC BY-SA 4.0
added 149 characters in body
May 15, 2020 at 4:57 comment added she_weeds but is your example a multipart polygon if each geometry has its own record? I thought a multipart polygon is where you have one record with multiple polygon geometries. Then you can't have a separate id per part unless you split it to single parts
May 15, 2020 at 1:55 history answered ahmadhanb CC BY-SA 4.0