Skip to main content
Solved

Export GeoDB to Excel


boubcher
Contributor
Forum|alt.badge.img+11

Hello

I am Looking to export the Geodatabase schema ( manay tables) without the data to an excel sheet

column 1: table name

Column2: attribute name

Column 3: attribute type

Column 4:width

Best answer by takashi

Hi @boubcher, you can use the Schema (Any Format) reader to read only the schema features. Each schema feature has a list attribute called "attribute{}" which contains the information on the schema of a single feature type.

  • fme_feature_type_name: feature type (table) name
  • attribute{}.name: attribute name
  • attribute{}.native_data_type: data type name in the source format
  • attribute{}.fme_data_type: FME generic data type name

Data type name contains width if necessary. e.g. fme_char(64).

Alternatively, you can also use the FeatureReader to read only schema features, if you set "Schema Features" to the Features To Read parameter.

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

9 replies

takashi
Influencer
  • Best Answer
  • May 30, 2018

Hi @boubcher, you can use the Schema (Any Format) reader to read only the schema features. Each schema feature has a list attribute called "attribute{}" which contains the information on the schema of a single feature type.

  • fme_feature_type_name: feature type (table) name
  • attribute{}.name: attribute name
  • attribute{}.native_data_type: data type name in the source format
  • attribute{}.fme_data_type: FME generic data type name

Data type name contains width if necessary. e.g. fme_char(64).

Alternatively, you can also use the FeatureReader to read only schema features, if you set "Schema Features" to the Features To Read parameter.


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • May 30, 2018

This is the sample Data we are looking to export to Excel

export-to-excel.zip


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • May 30, 2018

@takashi

the geoDb has no data in it, I used creator, but I am getting nothing schema-export-to-excel.png


takashi
Influencer
  • May 30, 2018
boubcher wrote:

@takashi

the geoDb has no data in it, I used creator, but I am getting nothing schema-export-to-excel.png

Schema features will be output via the <Schema> port.

 

 


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • May 30, 2018

@takashi

I am not getting the mentioned attribute list on the output , is there any specific configuration ?schema-export-to-excel-output.png


takashi
Influencer
  • May 30, 2018
boubcher wrote:

@takashi

I am not getting the mentioned attribute list on the output , is there any specific configuration ?schema-export-to-excel-output.png

Generally list attributes won't appear on the Table View in FME Data Inspector. To inspect detailed contents of the feature including list attributes, see the Feature Information window after selecting a feature on the Table View.

 


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • May 30, 2018

@takashi

Sorry I am still not getting all the attributes list there

please see attached the WS and the output

sechema-extraction.fmwattribute-exposer.xlsx


takashi
Influencer
  • May 30, 2018
boubcher wrote:

@takashi

Sorry I am still not getting all the attributes list there

please see attached the WS and the output

sechema-extraction.fmwattribute-exposer.xlsx

Have a look at the ListExploder transformer.

 

You will have to learn more about List. Read the documentation: About List Attributes

 

 


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • May 30, 2018

@takashi

It work finally , after using the attribute exploder


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