Skip to main content
Question

How can I avoid feature database names and only write feature classes to GDB

  • January 25, 2019
  • 3 replies
  • 80 views

jhu_20
Contributor
Forum|alt.badge.img+7

I am reading feature classes contained in feature datasets from a FGDB and then write all feature classes to a SDE/GDB. My question is how I can avoid feature dataset names and only write feature classes. I don't need the feature dataset names

 

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

samvernon
Contributor
Forum|alt.badge.img+4
  • Contributor
  • January 27, 2019

This has driven me nuts before now. Do you mean feature dataset and not feature database? If you expose the atrribute using an "Atrribute Exposer" and the manage it. I have used the "Attribute Remover" to do this. Depends on your workspace flow.


jhu_20
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • January 28, 2019

David_r and Samvernon, Thanks for providing your suggestions. I want to load only feature class from FGDB to Enterprise GDB and no feature dataset names. I was able to find another post and applied the solution: add AttributeCreator and set "geodb_feature_dataset" to a blank value. This solution worked and resolved my issue. Thanks again.


Forum|alt.badge.img+2
  • February 1, 2019

A couple of thoughts on the feature dataset.

- there are differences between the "Esri Geodatabase (File Geodb)" and the "Esri Geodatabase (File Geodb Open API)" on how they handle the Feature Dataset. The former sets the geodb_feature_dataset attribute, the latter includes the feature dataset in the feature type name. featuredataset/featureclass

- if your writing to existing feature classes in the enterprose Geodb, then the feature dataset should be ignored, since a feature class name has to be unique across the database. If the feature class doesn't exist in the Enterprise Geodb, then you will have to remove the feature dataset attribute as suggested by @samvernon and @david_r