Skip to main content
Solved

Transformation or Python Script?


plynn
Participant
Forum|alt.badge.img+3
  • Participant

I have two things that I am trying to accomplish with the current feature/attributes that I have joined. For each row of data, I need to write out 5 new rows. Also, in the new rows, some of the column values are the column names of the input feature.

Here is an example: (Attribute Name: Attribute Value)

input: ASSETNUM: 12345, VLVCOND:Good, TRNSOPEN:10, OPENDRTN: Clockwise, STRUCTUR:No, SURCOVER: Blue, INSPECTOR:Joe Smith

Output: ASSETNUM:12345, METERNAME:VLVCOND, OBSERVATION:Good, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:TRNSOPEN, OBSERVATION:10, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:OPENDRTN,OBSERVATION:Clockwise, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:STRUCTUR, OBSERVATION:No, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:SURCOVER, OBSERVATION:Blue, INSPECTOR:Joe Smith

 

Any help would be greatly appreciated.

Thanks.

Best answer by ebygomm

This is the sort of workflow you would need

Capture

View original
Did this help you find an answer to your question?

4 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • June 18, 2021

You should be able to do this with an AttributeExploder

 

Is your input text as per the example, or do you have a feature that has attributes ASSETNUM, VLVCOND etc. like this

Capture


plynn
Participant
Forum|alt.badge.img+3
  • Author
  • Participant
  • June 18, 2021
ebygomm wrote:

You should be able to do this with an AttributeExploder

 

Is your input text as per the example, or do you have a feature that has attributes ASSETNUM, VLVCOND etc. like this

Capture

The input is a feature that has attributes like you have it shown above.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • June 18, 2021

This is the sort of workflow you would need

Capture


plynn
Participant
Forum|alt.badge.img+3
  • Author
  • Participant
  • June 18, 2021
ebygomm wrote:

This is the sort of workflow you would need

Capture

That worked perfectly. Thank you so much for your help.


Reply


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