Skip to main content
Solved

Group Features based on their spatial relation

  • September 12, 2022
  • 9 replies
  • 68 views

boubcher
Contributor
Forum|alt.badge.img+11

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 

Best answer by ebygomm

boubcher wrote:

@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

View original
Did this help you find an answer to your question?

9 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+34

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


caracadrian
Contributor
Forum|alt.badge.img+22
  • Contributor
  • September 13, 2022

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.


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • September 13, 2022
caracadrian wrote:

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?

 


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • September 13, 2022

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


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • September 13, 2022
ebygomm wrote:

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 

 


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • September 13, 2022
boubcher wrote:

@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?


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • September 14, 2022
boubcher wrote:

@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


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • September 14, 2022
boubcher wrote:

@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


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • September 18, 2022
boubcher wrote:

@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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings