Skip to main content
Solved

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

  • November 25, 2015
  • 4 replies
  • 131 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"
View original
Did this help you find an answer to your question?

4 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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
takashi wrote:
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
Contributor
Forum|alt.badge.img+19
  • Contributor
  • April 30, 2019
takashi wrote:
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
Contributor
Forum|alt.badge.img+19
  • Contributor
  • May 1, 2019
runneals wrote:

@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.


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