Skip to main content
Best Answer

Passing CRC attributes as a published parameter

  • February 9, 2015
  • 4 replies
  • 34 views

samisnunu
Contributor
Forum|alt.badge.img+12
Hi ,

 

How can I pass the CRC attributes as a published user parameter (e.g., $(CRC_ATTR))

 

 

The purpose is to automate the workspace, without having to re-enter the attributes manually in the CRCCalculator transformer.

 

 

FME Desktop 2014 SP3

 

 

Thanks,

 

Sami

Best answer by takashi

Hi Sami,

 

 

I don't think there is a way to pass a user parameter to the attribute list of the CRCCalculator. But you can use the FMEFunctionCaller (or Python / Tcl scripting) to call the @CRC function passing a user parameter as its argument.

 

e.g. assuming that $(CRC_ATTR) is comma separated attribute names:

 

-----

 

@CRC(ATTRIBUTES,$(CRC_ATTR))

 

 

 

See this page to learn more about the @CRC function.

 

FME Factory and Function Documentation (http://docs.safe.com/fme/html/FME_FactFunc/index.html)

 

 

Takashi
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.

4 replies

takashi
Celebrity
  • Best Answer
  • February 9, 2015
Hi Sami,

 

 

I don't think there is a way to pass a user parameter to the attribute list of the CRCCalculator. But you can use the FMEFunctionCaller (or Python / Tcl scripting) to call the @CRC function passing a user parameter as its argument.

 

e.g. assuming that $(CRC_ATTR) is comma separated attribute names:

 

-----

 

@CRC(ATTRIBUTES,$(CRC_ATTR))

 

 

 

See this page to learn more about the @CRC function.

 

FME Factory and Function Documentation (http://docs.safe.com/fme/html/FME_FactFunc/index.html)

 

 

Takashi

samisnunu
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • February 9, 2015
Thanks Takashi for the tip,

 

 

I referred to the documentation link that you provided..

 

 

FMEFunctionCaller has solved this issue for me!

 

 

 

 

thejando
Contributor
Forum|alt.badge.img+4
  • Contributor
  • July 9, 2019
Hi Sami,

 

 

I don't think there is a way to pass a user parameter to the attribute list of the CRCCalculator. But you can use the FMEFunctionCaller (or Python / Tcl scripting) to call the @CRC function passing a user parameter as its argument.

 

e.g. assuming that $(CRC_ATTR) is comma separated attribute names:

 

-----

 

@CRC(ATTRIBUTES,$(CRC_ATTR))

 

 

 

See this page to learn more about the @CRC function.

 

FME Factory and Function Documentation (http://docs.safe.com/fme/html/FME_FactFunc/index.html)

 

 

Takashi

Hi @takashi, how would I include the feature geometry in this function. Would I need to use the GeometryExtractor transformer first? Is this answer still relevant with FME 2018? I can't see any options to select "All Attributes" with the CRCCalculator transformer.


thejando
Contributor
Forum|alt.badge.img+4
  • Contributor
  • July 9, 2019

Hi @takashi, how would I include the feature geometry in this function. Would I need to use the GeometryExtractor transformer first? Is this answer still relevant with FME 2018? I can't see any options to select "All Attributes" with the CRCCalculator transformer.

I just discovered the answer... The @CRC function can be altered to accept GEOM as a parameter, or the ALL option can be used to calculate a CRC value on All attributes and geometry.