Skip to main content
Question

Find neighbour with different attribute value


Hi community,

 

I'm trying to find a neighbour for some polygons, then I'm dissolving the base with its candidate. Until here, everything works fine, I get the candidate and dissolve them, but I'm facing the issue that those polygons are multiparts and sometimes Neighbour Finder finds as candidate another multipart of the same father and when I dissolve them the multipart stills as it was before because for some cases the transformer finds the neighbour in a shared coordinate and that candidate has the same value in attribute X.

 

 

I considered to filter previously all features named as "A" for the example below, but "A" could be a valid candidate for other multiparts with another value different to "A", so I think that is not an option.

 

 

Thanks for your support!

 

Alejandro.

3 replies

Forum|alt.badge.img+2

Deaggregator should do the trick. It will create a feature per part.


mark2atsafe
Safer
Forum|alt.badge.img+44

Can you post your workspace, or at least a screenshot of it? I'm unsure in your images which is the Base and which is the Candidate, and which is supplying the group-by attribute in the Dissolver. But whatever way around I try it, I can't get the same result. If there is a common attribute, then all of the features get dissolved. If there is no common attribute, then no features get dissolved - which is your result, but it's because no attributes match.

So it would be really useful to see your workspace because I think there must be something else happening. But one other important question: how should FME know which part of A to dissolve? Is it because it is the smaller part?


mark2atsafe wrote:

Can you post your workspace, or at least a screenshot of it? I'm unsure in your images which is the Base and which is the Candidate, and which is supplying the group-by attribute in the Dissolver. But whatever way around I try it, I can't get the same result. If there is a common attribute, then all of the features get dissolved. If there is no common attribute, then no features get dissolved - which is your result, but it's because no attributes match.

So it would be really useful to see your workspace because I think there must be something else happening. But one other important question: how should FME know which part of A to dissolve? Is it because it is the smaller part?

Hi @mark2atsafe,

 

Below a screenshot of the workspace. About last question, yes I'm giving the smaller polygons as the base.

Thanks,


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