Solved

Group Features based on their spatial relation

  • 12 September 2022
  • 9 replies
  • 15 views

Badge +10

Hello There

I have features that intersect with each other I want to create a group based on their interconnection

as you can see in the picture there 3 group

each group has features that intersect with each other to create a chain

Thanks

image 

icon

Best answer by ebygomm 14 September 2022, 18:22

View original

9 replies

Userlevel 4
Badge +26

Hmm, you could use a dissolver to create two polygons out of the groups and then use a SpatialRelator/Clipper/SpatialFilter to pass a common arrtibute from the big polygons to the smaller ones. There's probably a better way but that would work

Badge +20

You can also use a reverse of @virtualcitymatt​ 's solution.

SpatialRelator/SpatialFilter to get the common attribute of the polygon and Dissolver with GroupBy on that attribute.

Badge +10

You can also use a reverse of @virtualcitymatt​ 's solution.

SpatialRelator/SpatialFilter to get the common attribute of the polygon and Dissolver with GroupBy on that attribute.

@caracadrian​ 

the features as connected to each one in Cascade A related to B , B related to C, ....

when you do the relator how could we get the common Attribute that related them all together?

 

Userlevel 1
Badge +21

If you use a spatialrelator to build a list of relationships for each feature, you can then use the custom transformer ListCombiner to assign groups

Badge +10

If you use a spatialrelator to build a list of relationships for each feature, you can then use the custom transformer ListCombiner to assign groups

@ebygomm​  Hello How are you

is not given the expected result still we have the same group id for them

 

imageimageimage 

 

Userlevel 1
Badge +21

@ebygomm​  Hello How are you

is not given the expected result still we have the same group id for them

 

imageimageimage 

 

Have you verified that pano_name is unique?

 

In the ListCombiner I think you should also have pano_name selected under additional source attributes but I don't think that is the problem here

 

Are you able to share the data?

Badge +10

@ebygomm​  Hello How are you

is not given the expected result still we have the same group id for them

 

imageimageimage 

 

@ebygomm​ 

sure this is a sample of the data we are working on

Thanks

Userlevel 1
Badge +21

@ebygomm​  Hello How are you

is not given the expected result still we have the same group id for them

 

imageimageimage 

 

The list combiner works as expected for me on that sample data

imageCreates 3 groups (I've coloured them based on the group attribute). Group 0 contains 1 feature, Group 1 contains 21 features and Group 2 contains 30 features

image

Badge +10

@ebygomm​  Hello How are you

is not given the expected result still we have the same group id for them

 

imageimageimage 

 

@ebygomm​ 

Thanks for your help, I think I missed the setting

Again Big Thanks

 

Reply