Skip to main content
I have a bunch of features that have Geometry Traits attached as a result of an upstream process I have carried out to find out if they are valid. I now want to manipulate those traits and I'm pretty confident that I need to use the GeometryPropertyExtractor. But no matter what I enter into the parameter 'Traits to Extract' I cannot get anything to be extracted. If I inspect the features I can see the traits but I'm not clear how to reference them so I can get at them... does anyone have any experinece with traits that they can share? Thanks!
Hi Dave,

 

 

could you perhaps post the output of one of these features as it appears in a Logger?

 

 

David
As far as I know, the GeometryPropertyExtractor is the way to go here. I've just tried creating/extracting traits and it seems to work OK.

 

 

Some thoughts:

 

 

- You don't have a Geometry XQuery set do you?

 

- Is this an older workspace open in a newer FME? Can you replace the transformers to see if that helps?

 

- What does it look like saved as a mapping file? Mine is below. Does your's look significantly different?

 

 

Weak, I know. I think the best thing is to send the support team a copy of the data and see what we can find.

 

 

DEFAULT_MACRO GeometryPropertyExtractor_PARAMETER

 

 

INCLUDE <                                                              \\

 

   if { {No} == {Yes} } {                                              \\

 

      puts {MACRO GeometryPropertyExtractor_ACTION ACTION EXTRACT_TRAITS_PREFIXED}; \\

 

   } else {                                                            \\

 

      puts {MACRO GeometryPropertyExtractor_ACTION ACTION EXTRACT_TRAITS}; \\

 

   };                                                                  \\

 

   if { {EXTRACT_TRAITS} == {EXTRACT_GEOMNAME} } {                     \\

 

   } else {                                                            \\

 

      puts {MACRO GeometryPropertyExtractor_PARAMETER PARAMETER _count}; \\

 

   };                                                                  \\

 

]

 

 

FACTORY_DEF * GQueryFactory                                            \\

 

   FACTORY_NAME GeometryPropertyExtractor_GQuery                       \\

 

   INPUT  FEATURE_TYPE GeometryPropertySetter_SET                      \\

 

   $(GeometryPropertyExtractor_ACTION)                                 \\

 

   $(GeometryPropertyExtractor_PARAMETER)                              \\

 

   OUTPUT UNTOUCHED FEATURE_TYPE GeometryPropertyExtractor_UNTOUCHED   \\

 

   OUTPUT RESULT FEATURE_TYPE GeometryPropertyExtractor_EXTRACTED

Reply