Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

 
discard

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.