Skip to main content
Solved

import schema definition

  • November 12, 2014
  • 1 reply
  • 85 views

Forum|alt.badge.img
Hi All, I have 19 tables with 50 odd attributes each and their datatypes within a csv.(field_name, datatype, Width, Precision). I am writting out to ESRI file GSB.

 

 

How do i set  the writers data type from this list. I have tried importing the csv the using the "duplicate on writer" function. This is great for setting the name of the writer attributes but doesnt set the data Type fields. Is this possible ?  Any suggestions to save me from setting 1000 data types manually.

 

 

THanks Steve

 

 

Thanks for your help , as always 

Best answer by takashi

Hi Steve,

 

 

I don't think there is a way to import schema definition to static writer feature types from an external schema definition table.

 

Instead, I would recommend you to consider applying the Dynamic Schema mechanism (Lookup Table method).

 

See these links.

 

Dynamic Workflow Tutorial: Introduction (http://fmepedia.safe.com/articles/Samples_and_Demos/Dynamic-Workflow-Tutorial)

 

Dynamic Workflow Tutorial: Destination Schema is Derived from a Lookup Table (http://fmepedia.safe.com/articles/Samples_and_Demos/Dynamic-Workflow-Tutorial-Destination-Schema-is-Derived-from-a-Lookup-Table)

 

 

To apply the method, you will have to create a lookup table, but I think it will not take so long time since you already have a CSV table which describes all the required schema definition. You can modify the CSV table easily to fit the requirement for the look up table format.

 

Hope this helps.

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

1 reply

takashi
Influencer
  • Best Answer
  • November 13, 2014
Hi Steve,

 

 

I don't think there is a way to import schema definition to static writer feature types from an external schema definition table.

 

Instead, I would recommend you to consider applying the Dynamic Schema mechanism (Lookup Table method).

 

See these links.

 

Dynamic Workflow Tutorial: Introduction (http://fmepedia.safe.com/articles/Samples_and_Demos/Dynamic-Workflow-Tutorial)

 

Dynamic Workflow Tutorial: Destination Schema is Derived from a Lookup Table (http://fmepedia.safe.com/articles/Samples_and_Demos/Dynamic-Workflow-Tutorial-Destination-Schema-is-Derived-from-a-Lookup-Table)

 

 

To apply the method, you will have to create a lookup table, but I think it will not take so long time since you already have a CSV table which describes all the required schema definition. You can modify the CSV table easily to fit the requirement for the look up table format.

 

Hope this helps.

 

 

Takashi

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