Question

How to Fanout vir .GDB contents?

  • 15 August 2014
  • 2 replies
  • 0 views

Badge
Hi there,

 

 

I have a fully functional workspace that dynamically does calculations on shape files contained within a selected folder. My output is an xls that is fanned out baie the “filename” attribute retrieved from the “FileNamePartExtractor” transformer.

 

 

My problem is, I need to do the same calculation for a GDB file now, containing multiple layers(such as WATER, FORREST, etc). Now obviously, “filename” only retrieves the name of the .gdb (AFR_Complete.gdb in this case) so that no longer works. I’ve also tried “fme_basename” and “fme_dataset”, but with no success.

 

 

Is there a way that I can fanout by the contents of the GDB file?

 

 

 

Thanks in advance

2 replies

Userlevel 2
Badge +17
Hi Robbie,

 

 

"fme_feature_type" attribute of every feature read by the GDB reader stores feature type name. And, if you need to get feature type names via other than the GDB reader, you can use the Schema (Any Format) reader. Features read by the reader will have "fme_feature_type_name" attribute.

 

 

Takashi
Badge
Thanks Takashi!

 

 

That was exactly the one I was looking for. Works perfectly.

 

 

 

Kind Regards,

Reply