Skip to main content
Question

Extract Geometry Traits

  • April 9, 2013
  • 2 replies
  • 72 views

davideagle
Contributor
Forum|alt.badge.img+21
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!
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.

2 replies

david_r
Celebrity
  • April 10, 2013
Hi Dave,

 

 

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

 

 

David

mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • April 10, 2013
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