I have a point shapefile with thousand of points. It has an ID code field that supposed to be unique. Every now and then the data entry clerk wrongly type the id creating duplicates.Right now I'm manually scrolling the field to find the duplicate.Is there a sane way to do this using the Search Query Builder ? Thanks for any help.
|
|
If the IDs are consecutive, I would add a new temporary column with unique values like @Ship.shp suggested and then use the query builder to search for ID != uniqueID. That would return the duplicates directly. After fixing the original IDs, remove the extra column or repeat the whole process as needed — it is not clear what kind of pattern your IDs must match. If they just need to be unique, note the last value first and you can then edit the bad IDs in one iteration, just bumping the number as you go. |
|||
|
|
|
Use Group Stats plugin and set the ID as a field classification. You can see how many times each value has been entered in 'count' column. |
|||
|
|
|
A quick (although inelegant) way to do this is to go into Layer properties, select Style - Categorized using the column that you're interested in. Apply this, then right click on the layer in the layers window and check the Show Feature Count checkbox. Then expand the layer in the layers window and you can immediately see how many times each value has been entered. |
||||
|
|
|
Also you can use the split by attribute and end up with a seperate table for each value. I like Rayo's suggestion though. except statist doesn't quite work like I thought it did.
|
|||||||
|

