7

I want to gather all the polygons in my shapefile that intersects with each other in several groups. If they had shared a common field I would have used the "Dissolve" tool but they don't share any common field.

Is there an easy way to dissolve by location or something similar?

enter image description here

0

2 Answers 2

10

You can dissolve without a dissolve field but Im not sure if that is what you want.

I suspect it is:

  1. Dissolve
  2. Multipart to singleparts
  3. Field calculate @row_number
  4. Intersect output with your original data. Now you have your input data with a group attribute:

enter image description here

0
8

First you run Dissolve, then you use Multi to singleparts to separate your blobs from each other. This removes individual attributes, but if you have those, you could run Dissolve using any of these attributes.

Alternatively you could add cluster IDs to your circles using the DBSCAN clustering.

0

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.