Skip to main content
Solved

Creating Empty File Geodatabase


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

 

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

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

 


rahulsharma wrote:

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})

Reply


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