Skip to main content
Question

Conditional Reprojections using Conditional Values in Reprojector

  • May 11, 2018
  • 3 replies
  • 27 views

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.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • 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
  • 1637 replies
  • 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?

 


  • Author
  • 7 replies
  • May 14, 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.

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.