Data Download Service: Writing to a template ESRI File-Based Geodatabase
Article Number: 000001109 - Last Modified: Apr 2, 2012
When writing to an existing Geodatabase using FME Desktop or the Job Submitter, the new features will be inserted to the existing GDB file. When using the Data Download service, the output is written to a different folder, so a new GDB file will be created. The solution is to copy a template GDB file to that output folder first.
Description
-
Add a "File Copy" writer to the workspace. The "Destination File Copy Directory" should be the same name as your Geodatabase writer "Destination ESRI Geodatabase File" name. eg. c:/temp/austin.gdb
-
Right-Click on your FILECOPY writer in the Navigator window, and move it to the top of the writers list. This will ensure that the template file is copied before the Geodatabase writer writes the output file.
-
To actually copy the file, a feature with the name of the template file must be passed to the FILECOPY writer. This is done by using a Creator and an AttributeCreator. Add a Creator to the canvas. The default settings will work for this transformer.
-
Connect an AttributeCreator to the Creator. Create an attribute called filecopy_source_dataset and set it to the absolute path of the template GDB file. Use forward slashes--not back slashes. eg. c:/temp/template.gdb. Make sure the template file is in a location that is visible to the FME Server--either on the FME Server's local drive, or on a shared network drive.
-
Connect the AttributeCreator to the FILECOPY destination feature type.
-
You should probably un-publish the destination file name parameters for both writers.
You can now publish the workspace to FME Server. A sample workspace is attached. |
Suggested Similar Articles