9

I was wondering if anyone could help. I have a tab file in MapInfo consisting of just polylines. Each is meant to have its own reference number, however some are duplicated (e.g two lines occupying the same position with the same ID's) I can identify these with a query, but what I need to know is if it's possible to delete duplicates and leave one remaining (it doesn't matter which one as they are identical).

Thanks, Alan

(ps. I also have access to QGIS if it is easier in that)

underdark
  • 84,148
  • 21
  • 231
  • 413
Alan Carr
  • 2,475
  • 6
  • 28
  • 44

3 Answers3

16

Plugin mmqgis for QGIS. http://michaelminn.com/linux/mmqgis/ (http://plugins.qgis.org/plugins/tags/mmqgis/)- Delete Duplicate Geometries

spatialhast
  • 3,631
  • 2
  • 27
  • 52
6

Have a look at the Delete Duplicates tool that you can find in the Tool Manager. It will let you delete duplicates in a table based on attribute values, such as an ID.

Might be a good idea to create a backup of your table before using the tool.

This is in MapInfo Professional :-)

Peter

  • With this tool, you can select several fields to check for duplicates at the same time (e.g., all the fields except the ID. Like this it checks whether there are duplicate rows). Very handy. – Motti Dec 01 '23 at 08:49
3

In QGIS you could try GRASS v.clean (rmdupl), it's included in the Sextante toolkit. See this link.

N.

Glorfindel
  • 1,096
  • 2
  • 9
  • 14
nhopton
  • 6,983
  • 1
  • 19
  • 36