Skip to main content
Question

Calculate Field based on feature writer summary attribute


ladeef
Contributor
Forum|alt.badge.img

This seems like a simple operation, but I can't seem to figure it out. I have a feature writer output that contains the summary field total features written. I'm trying to use this attribute to populate 4 records from a table from another feature class after the writer is done. I just need the same "total features written" to be applied to 4 rows.

I'm trying to get 1487 in all of the totalfeatures field.

I'm also trying to use "total features written" to do some calculations after the fact, but everything comes up missing.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • February 14, 2019

You could use a featuremerger with a merge type of attributes only. The 4 records from your table go into the requestor, the features written attribute is the supplier, join on 1.

 

You could also try using a variable setter and a retriever, but you need to then ensure that the variable is set before you retrieve it.


ladeef
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • February 14, 2019
ebygomm wrote:

You could use a featuremerger with a merge type of attributes only. The 4 records from your table go into the requestor, the features written attribute is the supplier, join on 1.

 

You could also try using a variable setter and a retriever, but you need to then ensure that the variable is set before you retrieve it.

Actually, that didn't solve my problem of getting the summary into a specified field, is that possible?

What is the significance of join on 1? one to one join on each feature I assume?


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • February 14, 2019
ladeef wrote:

Actually, that didn't solve my problem of getting the summary into a specified field, is that possible?

What is the significance of join on 1? one to one join on each feature I assume?

If you rename the total features written attribute to totalFeatures before the featuremerger and then in the FeatureMerger Attribute Accumulation options set conflict resolution to Use Supplier you'll end up with your totalFeatures field populated in the table.

 

And yes, join on 1 is just joining the single incoming supplier to every requestor.


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