Skip to main content
Solved

AttributeManager - export conditional to text


mathiku
Contributor
Forum|alt.badge.img+7

I have a very large conditional I would like to export to text, so far I've tried copy/paste, and can't seem to find any other ways.

However it doesn't wok.

Best answer by JennaKAtSafe

mathiku wrote:

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 

Alternatively, you could click Copy on the AttributeManager from the Navigator and Paste it into a text editor. The output format is very similar to what you find in the .fmw but it will at least save you some scrolling :) If this is a feature you'd like to see enhanced feel free to submit this as an Idea! 

View original
Did this help you find an answer to your question?

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • August 19, 2021

You could open up the .fmw in a text editor (notepad, or notepad++) and find the conditions there. Note it will likely have some funny formatting so you will need to fix that


mathiku
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 20, 2021
hkingsbury wrote:

You could open up the .fmw in a text editor (notepad, or notepad++) and find the conditions there. Note it will likely have some funny formatting so you will need to fix that

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 


JennaKAtSafe
Safer
Forum|alt.badge.img+6
  • Safer
  • Best Answer
  • August 23, 2021
mathiku wrote:

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 

Alternatively, you could click Copy on the AttributeManager from the Navigator and Paste it into a text editor. The output format is very similar to what you find in the .fmw but it will at least save you some scrolling :) If this is a feature you'd like to see enhanced feel free to submit this as an Idea! 


mathiku
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 26, 2021
mathiku wrote:

Thank you - was hoping for something slightly easier to work with. The conditional is rather hard too read and extremely long - below is approximately a third of it:

 

FACTORY_DEF {*} AttrSetFactory  COMMAND_PARM_EVALUATION SINGLE_PASS  FACTORY_NAME { AttributeManager_18 }  INPUT FEATURE_TYPE SpatialFilter_PASSED  INPUT FEATURE_TYPE SpatialFilter_FAILED  MULTI_FEATURE_MODE { NO }  NULL_ATTR_MODE { NO_OP }  ATTRSET_CREATE_DIRECTIVES _PROPAGATE_MISSING_FDIV  ACTION_COLUMN 3  DEF_VAL_COLUMN 2  MISSING_INPUT_ATTR_HANDLING RENAME_SET_VALUE REMOVE  ATTR_ACTION { "Kategori" "Kategori" "FME_CONDITIONAL:DEFAULT_VALUE'_FME_NO_OP_'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2 OR 3;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>etc.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>landbrug<space>mv.;TEST <at>Value<openparen>Kategori<closeparen> = Anden<space>bygning<space>til<space>produktion'Anden<space>bygning<space>til<space>landbrug<comma><space>industri<space>eller<space>lignende'BOOL_OP;OR;COMPOSITE_TEST;1 OR 2;TEST <at>Value<openparen>Kategori<closeparen> = <openparen>UDFASES<closeparen><space>Anden<space>bygning<space>til<space>transport<comma><space>handel<space>etc;TEST 

 

Nahh... I don't need it very often, I was just surprised how overly complicated it is. 


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