Skip to main content
Solved

Create new file geodatabase on writer

  • August 17, 2017
  • 5 replies
  • 777 views

pinkopo
Contributor
Forum|alt.badge.img+5

Hi guys,

I am trying to automate a process which requires to write into a new file-geodatabase everytime i run. is there a way that FME can create a new file geodatabase for my feature classes in a same workbench?

Thanks!

Best answer by mygis

Hi @sangli

If you mean to write in the middle of a process you can use the FeatureWriter transformer . You can place it anywhere in the transformation process and continue with the translation.

Which version of FME are you using by the way?

 

 

Cheers.

Lyes

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.

5 replies

mygis
Supporter
Forum|alt.badge.img+14
  • Supporter
  • Best Answer
  • August 17, 2017

Hi @sangli

If you mean to write in the middle of a process you can use the FeatureWriter transformer . You can place it anywhere in the transformation process and continue with the translation.

Which version of FME are you using by the way?

 

 

Cheers.

Lyes


Forum|alt.badge.img+2
  • August 17, 2017

Do you mean to overwrite the database each time the Workspace runs? If so, look into the parameters for the writer to find the overwrite option.

If you want to create a new database each time then the name or location would need to change and you could use the Fanout Dataset option to achieve this.


redgeographics
Celebrity
Forum|alt.badge.img+62
Just for clarification, what should happen to the old database? Overwrite it or retain it?

 

 


trentatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • August 17, 2017

Hello @sangli

 

To verify, you are wanting to create a new File Geodatabase with features classes on each translation of the workspace. If that is correct, there are a few ways you could accomplish this.

If the Feature Classes within the Geodatabase are always the same, you could use a Template File Geodatabase(not an XML template), this will mimic the template you have chosen. You could then set the name of the Output geodatabase to be "Output_$(DateStamp).gdb" using Date Type user Parameter.

 

 

Alternatively, you could use a dynamic writer with a Template Geodatabase(ensure again you are not overwriting the geodatabase).

If you can provide more information regarding what you are trying to achieve, we can provide better assistance.


pinkopo
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 21, 2017

Hi @sangli

If you mean to write in the middle of a process you can use the FeatureWriter transformer . You can place it anywhere in the transformation process and continue with the translation.

Which version of FME are you using by the way?

 

 

Cheers.

Lyes

Hi Lyes mine is 2017 version and your suggestion perfectly solved the problem.. Thanks!