Skip to main content
Solved

How do I use a conditional statement with the clipper tool?

  • December 18, 2017
  • 1 reply
  • 19 views

Hi I'm a new user to FME, but I am familiar with model building.

I have a process that takes LiDAR point clouds and turns them into DEMs. A branch of this process takes the outline of the initial point cloud and clips the DEM to the point cloud boundary. There are two possible point cloud outlines created by this process (depending on if there are holes in the data).

How do I get the clipper to use outline A if it exists, else use outline B?

I know the logic required here, I just can figure which transformers / settings / parameters to use to get this process to run

Best answer by jdh

Depending on the actual workflow one or more of the following should work:

Use a variableSetter upstream to specify which outline to use, just before the clipper use a variableRetriever and a tester to get just the outline you want

create a priority attribute on the outlines (A: 1, B:2) and a sorter and sampler (1st feature) just before the clipper.

create an attribute on the DEM (hole/no_hole) and the corresponding attribute on the outlines, and use a Group-By on the clipper

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

1 reply

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • December 18, 2017

Depending on the actual workflow one or more of the following should work:

Use a variableSetter upstream to specify which outline to use, just before the clipper use a variableRetriever and a tester to get just the outline you want

create a priority attribute on the outlines (A: 1, B:2) and a sorter and sampler (1st feature) just before the clipper.

create an attribute on the DEM (hole/no_hole) and the corresponding attribute on the outlines, and use a Group-By on the clipper


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