Skip to main content

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.

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.


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?


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