3

I'm trying to remove duplicate features from PyQGIS. Manually I can do it by using "Edit -> Merge Selected Features" and then "Multipart to Singlepart" from fTools in QGIS, but can this functionality be reached from PyQGIS? Can't find anything about Merge in the API docs.

I tried using QgsGeometryAnalyzer.dissolve but it seems to keep the duplicate parts in the multipart features created. I hope someone can describe an easy way to accomplish what I'm after.

Regards, Andreas

1 Answer 1

3

MMQGIS plugin contains a tool to remove duplicate geometries. You can either use that or build upon its source code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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