This question already has an answer here:

I'm trying to identify identical (or duplicate) geometry in QGIS by adding a common number for each identical set. For example, if there are 4 features, and 2 are identical:

1| Identical with 2

2| Identical with 1



I want the following:





With ArcGIS, there is a tool called "Find Identical" that creates a table for geometry duplicates - you choose a shapefile and choose "Shape" under the list to identify within, and it produces a table of identicals, as above. Here is a screenshot of the tool:

enter image description here

marked as duplicate by Jochen Schwarze, Hornbydd, xunilk, LaughU, Dan C Nov 13 '18 at 16:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


There is Add unique value index field tool in QGIS 3.

(1) Preparation: create a WKT attribute field by geom_to_wkt($geometry) using the Field Calculator.

enter image description here

(2) Start Add unique value index field tool (in Processing Toolbox | Vector table) and assign your WKT field to Class field.

enter image description here

Output field (e.g. NUM_FIELD) has index number starting from 0. Probably you need to add 1 to obtain what you want (1, 2, 3...).

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.