Skip to main content
Question

The translation of numerous FGDB by using the same script fails

  • September 8, 2017
  • 3 replies
  • 9 views

lavairye
Contributor
Forum|alt.badge.img

Hello,

I'm a beginner with the FGDB translators in FME.

I would like to create a generic script which will be able to transform any FGDB into Geojson files. As I don't have any ESRI license, I use the FGDB Open API reader/writer.

When I launch the script, the first FGDB is correctly transformed, but when I try to relaunch with a new one, which doesn't use the same tables, nothing happens.

Did I forget something?

Here is my (very, very simple) script.

Thanks for your advice.

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

trentatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • September 8, 2017

Hello @lavairye,

I believe you will want to use a wildcard character to read in all the geodatabases, along with a dynamic writer for the GeoJSON. On your attached workspace, I noticed a FileGDB API reader had been attached but I could not see any feature types attached to the GeoJSON writer.

 

 

I have edited the workspace so that you can see how to read in all geodatabases. You will have to point to the directory, and then make use of the wild card * to read in all file geodatabases.

 

 

Let me know if that helps. dynamicreadfgdb.fmw

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • September 8, 2017

What you want is a dynamic schema workspace.

Using a static schema defines the tables that will be read (and they are varying in your data).

Using a dynamic schema is used for copying the source one-on-one to the destination, whatever the source schema is.


lavairye
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • September 8, 2017

Thanks, it seems to work exactly as I wish.