Skip to main content
Solved

Creating Empty File Geodatabase

  • April 2, 2020
  • 3 replies
  • 299 views

Is it possible in FME to create empty Esri file geodatabases without any feature classes inside? Like how you would manually create them in ArcCatalog.

Best answer by rahulsharma

Hi @jm_spatial, currently this is not possible with FME Desktop as Writer will always require a FeatureType.

 

You can create an empty folder with name.gdb using a FileCopy or a simple python script

 

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.

3 replies

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • April 2, 2020

Hi @jm_spatial, currently this is not possible with FME Desktop as Writer will always require a FeatureType.

 

You can create an empty folder with name.gdb using a FileCopy or a simple python script

 


  • Author
  • April 2, 2020

Hi @jm_spatial, currently this is not possible with FME Desktop as Writer will always require a FeatureType.

 

You can create an empty folder with name.gdb using a FileCopy or a simple python script

 

Hi @rahulsharma, thanks for that. It would have been handy in implementing automation.

I know how to create file gdb using using python so I guess that would have to do for now.


bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • April 3, 2020

It is possible, but they aren't particularly elegant. If you're comfortable just calling it from the ArcPy library then PythonCaller will likely do it inside FME.

Import arcpy
arcpy.CreateFileGDB_management(out_folder_path, out_name, {out_version})