Skip to main content
Best Answer

can I compress a file geodatabase that I am writing to in FME

  • November 25, 2015
  • 4 replies
  • 206 views

Forum|alt.badge.img
Is their a way to set my file geodatabase writer to comress itself somehow?

Best answer by takashi

Hi, if you are using the Esri Geodatabase (File Geodb ArcObjects) writer [GEODATABASE_FILE], there is an advanced writer parameter called "Compress Database When Done". Or, if you need zip compressing, insert your desired zip file name (*.zip) as the folder to the Dataset of the writer, like this: "C:\\data\\output.zip\\dataset.gdb"
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.

4 replies

takashi
Celebrity
  • Best Answer
  • November 26, 2015
Hi, if you are using the Esri Geodatabase (File Geodb ArcObjects) writer [GEODATABASE_FILE], there is an advanced writer parameter called "Compress Database When Done". Or, if you need zip compressing, insert your desired zip file name (*.zip) as the folder to the Dataset of the writer, like this: "C:\\data\\output.zip\\dataset.gdb"

  • January 7, 2016
Hi, if you are using the Esri Geodatabase (File Geodb ArcObjects) writer [GEODATABASE_FILE], there is an advanced writer parameter called "Compress Database When Done". Or, if you need zip compressing, insert your desired zip file name (*.zip) as the folder to the Dataset of the writer, like this: "C:\\data\\output.zip\\dataset.gdb"

Great answer Takashi! One additional note is that 'Compess Data When Done' was originally mislabeled; it actually 'Compacts' the Geodatabase. The label has been updated in FME 2016.


runneals
Supporter
Forum|alt.badge.img+29
  • Supporter
  • April 30, 2019
Hi, if you are using the Esri Geodatabase (File Geodb ArcObjects) writer [GEODATABASE_FILE], there is an advanced writer parameter called "Compress Database When Done". Or, if you need zip compressing, insert your desired zip file name (*.zip) as the folder to the Dataset of the writer, like this: "C:\\data\\output.zip\\dataset.gdb"

@takashi Do you know if there is there a way to get the gdb as the root of the zip instead of having it be nested inside the zip?


takashi
Celebrity
  • May 1, 2019

@takashi Do you know if there is there a way to get the gdb as the root of the zip instead of having it be nested inside the zip?

Once you created the destination File Geodatabase dataset (***.gdb) with a FeatureWriter, you can then archive all the files under "***.gdb" into a zip archive (***.gdb.zip) using another FeatureWriter with the File Copy writer.