Skip to main content
Solved

ArcGIS - How to update related table without creation duplicate record.

  • November 16, 2017
  • 4 replies
  • 37 views

UnderGroundCable and OverheadTransmissionLine Line are two feature classes. some part of circuit A-B is UGC and and some is OHTL.

Both feature classes are related with the Electric Line Table.

In the ElectricLine table should be one record with the Circuitname= A-B and other common attributes and length should be UGC=OHTL .

Relation is one to many by CircutName field.

how i can do this by FME without creation duplicate record.

Thanks & Regards, AZA

Best answer by fmelizard

Hi @adnan_abbasi, just as @redgeographics mentioned, the StatisticsCalculator can be used here. You connect the CircuitSection table to the transformer. Inside, you'll have to group by the CircuitName, and set the Attributes to Analyze to the Length attribute. You can delete most of the values for the Calculate Attributes: leave the sum to calculate the total length and leave the Numeric Count or Total Count if you wanted to get the total number of sections that were added up.

 

 

Alternatively, the Aggregator will also work. Group by CircuitName, set a Count attribute if needed, and set the Length as the Attributes to Sum. Here, you have the option of creating a list of the Environment values if you wanted.
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.

4 replies

fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • November 27, 2017
Hi @adnan_abbasi, are you able to provide any images or samples of the input datasets?

 


  • Author
  • 1 reply
  • December 7, 2017

Greetings & Thanks for your replay,

Please find attached image.


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3704 replies
  • December 7, 2017

Maybe I'm missing something, but isn't it just a selection of the OH sections from the CircuitSection table into the ElectricLine table? If there's multiple sections of OH on a single circuit you could use the StatisticsCalculator to sum the lengths and output a single record per circuit.


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • Best Answer
  • December 12, 2017

Hi @adnan_abbasi, just as @redgeographics mentioned, the StatisticsCalculator can be used here. You connect the CircuitSection table to the transformer. Inside, you'll have to group by the CircuitName, and set the Attributes to Analyze to the Length attribute. You can delete most of the values for the Calculate Attributes: leave the sum to calculate the total length and leave the Numeric Count or Total Count if you wanted to get the total number of sections that were added up.

 

 

Alternatively, the Aggregator will also work. Group by CircuitName, set a Count attribute if needed, and set the Length as the Attributes to Sum. Here, you have the option of creating a list of the Environment values if you wanted.