Skip to main content
Solved

Passing CRC attributes as a published parameter

  • February 9, 2015
  • 4 replies
  • 13 views

samisnunu
Contributor
Forum|alt.badge.img+10
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
View original
Did this help you find an answer to your question?

4 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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+10
  • 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
takashi wrote:
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
thejando wrote:

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.


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