Skip to main content
Question

Rename feature classess in gdb (dynamic schema)


marta.podsiad
Supporter
Forum|alt.badge.img+9

Hi,

 

I am trying to rename feature classes in the gdb. I have found couple posts about this but I got FAILED when I implementing suggested soutions. What am I doing wrong? image

6 replies

j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • November 24, 2023

You may benefit from using a FeatureReader workflow transformer rather than a Reader. It has a schema port which will "list" the attribute names. AttributeCreator from - choose the "attribute{}" list index that represents the attributename you wish to rename; then set the value on the right. Also in the featuretype data stream, you need to rename the attribute. When both the schema and the data streams connection lines go into the writer, the changed attributename will meet up and write out dynamically


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • November 24, 2023

Hi, the process above explains how to rename attributes. I would like to rename feature class


j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • November 27, 2023

if you expose the fme_feature_type format attribute, you have a few other options:

  • use attributemanager/create where the output attribute fme_featuretype is set a conditional value
  • (perhaps easier) use attributevaluemapper to rename original feature class name to a new name

marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • November 28, 2023

Hi j.botterill,

 

I really appreciate your help but I cannot make it work


j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • December 11, 2023

Hi Marta, I got back to this today. I made some changes as attached. I think you need to alter the fme_feature_type_name for the Schema data stream and then on the Data stream you change the fme_feature_type


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • December 15, 2023

Hi, Unfortunately the workench fails. To clarify the purpose of this workbench is to rename feature layers in the gdb. image 


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