Skip to main content
Question

Dynamic connection file in FeatureWriter ESRI Geodatabase (ArcSDE Geodb)


aegman
Contributor
Forum|alt.badge.img+3

Hi,

 

I've configured a FeatureWriter to dynamically write feature classes to an ESRI Geodatabase, but I need to be able to write different feature types to different databases.

 

I've configured the FeatureWriter to get the connection file from an attribute, but it only uses the first connection file attribute it receives, it doesn't change connection based on the attribute value of the incoming features.

 

Is there a way to get it to do this, or do I need to setup a writer for each possible database connection?

2 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+39

Oh really?! I would have assumed this would work. Very strange. Is your data sorted by FeatureType? If So you Could try and put the FeatureWriter inside a CustomTransformer and use the GroupBy option. This might help work around the issue.


aegman
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • April 12, 2022

I know this was a long time ago, but the solution we ended up using was to create two workspaces and use a WorkspaceRunner.

 

The first workspace would sort our list of datasets by destination, then call the WorkspaceRunner for each unique destination. (At least this was still the case with the first version of FME2021, may be resolved in more recent versions.)


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