Skip to main content
Solved

Merge/Aggregate Data within FME


Forum|alt.badge.img

Hey guys,

I am trying to merge these two data sets and aggregate based on field names. Is there a way I could do this in one process without having to merge first then add a new reader and aggregate.

Best answer by david_r

You can just use an AttributeRenamer (or AttributeCopier, etc) to e.g. rename "_overlaps" on DEI_ALL_2 to "OVERLAPS_" before sending both feature types into the Aggregator.

The important thing is that the Group By attribute must have the same name on all the features that enter the Aggregator.

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

6 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • October 7, 2016

Yes you can absolutely add an aggregator to your process. Both feature types need to point to the same Aggregator transformer.

 

 

If your two input datasets are in the same format, you can even use a single reader with a merge filter set.

Forum|alt.badge.img
  • Author
  • October 7, 2016
jdh wrote:

Yes you can absolutely add an aggregator to your process. Both feature types need to point to the same Aggregator transformer.

 

 

If your two input datasets are in the same format, you can even use a single reader with a merge filter set.

 

I belive they are are in the same format -- but they have different field name one is _overlaps the other is overlaps_ ... when i point them both to aggregate both overlap fields show up -- i feel like i need to merge those to fields before I aggregate just not sure how.

david_r
Celebrity
  • Best Answer
  • October 7, 2016

You can just use an AttributeRenamer (or AttributeCopier, etc) to e.g. rename "_overlaps" on DEI_ALL_2 to "OVERLAPS_" before sending both feature types into the Aggregator.

The important thing is that the Group By attribute must have the same name on all the features that enter the Aggregator.


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • October 7, 2016
heidtmer wrote:

 

I belive they are are in the same format -- but they have different field name one is _overlaps the other is overlaps_ ... when i point them both to aggregate both overlap fields show up -- i feel like i need to merge those to fields before I aggregate just not sure how.
What david_r said. Rename the overlap field so that it matches.

 

 


Forum|alt.badge.img
  • Author
  • October 7, 2016
david_r wrote:

You can just use an AttributeRenamer (or AttributeCopier, etc) to e.g. rename "_overlaps" on DEI_ALL_2 to "OVERLAPS_" before sending both feature types into the Aggregator.

The important thing is that the Group By attribute must have the same name on all the features that enter the Aggregator.

 

awesome thank you guys!

 

 

I am working with verizon coverage data merging the carolinas and indiana data together into one shapefile displaying areas with lte coverage, no coverage and erratic. (if you were wondering)

 

 

thanks again!

 


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • October 7, 2016

Or you can use the FeatureMerger transformer, merging attributes and geometry and set the resulting geometry to be an aggregate of both.


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