Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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