Hi Jaro,
Use a PointOnAreaOverlayer with a list name specified, after that a ListSummer can sum up the attribute values.
Hi Itay,
unfortunately, the client's FME version is "basic" which neither has PointOnAreaOverlayer available. I need to develop a workaround to this, which seems to be quite difficult.
J.
Yupi! The Orientor, Geometrycoercer, LeftRightSpatialCalculator, Listexploder and Statisticscalculator does it!
Hi Jaro,
Good to hear you achieved the goal.
Another approach.
1) Branch the flow of polygons into two streams.
2) On one stream, append 0-based sequential index to each polygon with a Counter (Count Output Attribute: _index, Count Start: 0).
3) On another stream, count the number of polygons (use Aggregator. Count Attribute: _count, Keep Input Attributes: No), merge the count attribute to every point unconditionally (use FeatureMerger. Join On: a constant e.g. 1), and create copies of every merged feature i.e. point (use Cloner. Number of Copies: _count, Copy Number Attribute: _index).
4) Filter points by polygons with a SpatialFilter (Group By: _index).
5) Calculate sum for each group with a StatisticsCalculator or Aggregator.
Takashi