Skip to main content
Question

Conditional Reprojections using Conditional Values in Reprojector


I'm trying to set up some conditional reprojections in a workspace using the reprojector and conditional values for the destination coordinate system.

I'm using a published parameter in the workspace to select different regions around the world and run some processes on features in these regions.

When I try to use the values from the published parameters to conditionally set the destination coordinate system, FME fails to evaluate the input expression and the the translation fails.

The error message:

Reprojector_2: Reprojector_2: Failed to evaluate input expression: FME_CONDITIONAL:DEFAULT_VALUE'Mercator_World_KM'BOOL_OP;OR;COMPOSITE_TEST;<Unused>;TESTNorth America=North America'NA-ED-CONIC83_40_FME'FME_NUM_CONDITIONS2___ Program Terminating Translation FAILED.

What am I doing wrong?

 

Is there a better way to setup conditional reprojections?

 

 

Thanks for any help.

3 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • May 11, 2018

Hi @hear_it_here,

For a conditional reprojection, I would recommend using an AttributeCreator with a conditional to set the destination coordinate system name in an attribute on the feature. Then send the feature through a Reprojector transformer, with the destination coordinate system set to the attribute.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • May 11, 2018
Hi @hear_it_here,

 

I just tested the conditional setting in the Reprojector, and it seems to work OK. Would you mind sending me your workspace so I can see the problem in action?

 


daveatsafe wrote:

Hi @hear_it_here,

For a conditional reprojection, I would recommend using an AttributeCreator with a conditional to set the destination coordinate system name in an attribute on the feature. Then send the feature through a Reprojector transformer, with the destination coordinate system set to the attribute.

Thanks, I did it this way and it works. When I was setting up the conditional I did not do the conditional statement correctly and this was causing my issue.

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