Solved

How to chose flow based on if data exist in one dataset, if it doesnt exist a point should be created


I got a feature reader that reads in excel data. If data exists i create points from that data. If data doesn't exist i need to create a point myself based on center of a polygon with "centerpointreplacer" transformer.

 

How can I chose flow based on that scenario? If I can create points from excel then I dont want the centerpointreplacer to run.

icon

Best answer by ebygomm 11 May 2021, 11:37

View original

2 replies

Userlevel 1
Badge +21

There is a custom transformer called the NoFeaturesTester. If you send no features into this, it will output a feature via the Noinput port if no feature is received.

You can also use a FeatureMerger in the following way to do the same thing

Capture 

There is a custom transformer called the NoFeaturesTester. If you send no features into this, it will output a feature via the Noinput port if no feature is received.

You can also use a FeatureMerger in the following way to do the same thing

Capture 

Thanks I will try this in my workspace.

Reply