Skip to main content
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
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
Thanks Takashi for the tip,

 

 

I referred to the documentation link that you provided..

 

 

FMEFunctionCaller has solved this issue for me!

 

 

 

 
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.


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.


Reply