Skip to main content
Question

Eliminate segments based on attributes


Forum|alt.badge.img

Hi,

I am trying to eliminate linear elements based on their attributes. Then it needs to change the attributes of other segments as well. I basically need to select elements that have the same beggining and end values as the ones eliminated and change their values so they match. For example:

segment 1: Segment 2: Segment 3:

100-200 200-202 202-300

So I want to eliminate the segment no 2

and change the segment 1 and segment 3 so they become:

100-201 201-300

One of the main issues is that I cannot select the lines based on spatial relations. The data is really held in the table but spatially they may not touvh or even be near to eachother.

I've tried selecting using a test filter but it doesn't work... Any ideas.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • February 20, 2019

I think you can use adjacent attribute handling here.

Use an attribute creator with adjacent attributes to look at one prior and one subsequent feature and amend the from and to values if the feature is preceded or followed by a segment where the difference between the figures is 2 or less. Then remove the segments that are two or less

Adj_attribute_example.fmw


Forum|alt.badge.img
  • Author
  • February 20, 2019
ebygomm wrote:

I think you can use adjacent attribute handling here.

Use an attribute creator with adjacent attributes to look at one prior and one subsequent feature and amend the from and to values if the feature is preceded or followed by a segment where the difference between the figures is 2 or less. Then remove the segments that are two or less

Adj_attribute_example.fmw

I kind of understand your fmw and I think it could work well But I'll have some figuring out to do. Thanks and have a nice day


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