Skip to main content
Question

overlaping polygons statistics

  • February 18, 2014
  • 5 replies
  • 23 views

jaro
Contributor
Forum|alt.badge.img+1
Hello there,

 

anyone got an idea how to get statistics from the values of the points underlying the polygons? My polygons are unfortunately overlaping, the spatial filter doesn't work. The Spatial relator is not available in this project. I just need a sum of the values.

 

Thanks in advance,

 

J.
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.

5 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • February 18, 2014
Hi Jaro,

 

Use a PointOnAreaOverlayer with a list name specified, after that a ListSummer can sum up the attribute values.

jaro
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 18, 2014
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.

jaro
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 18, 2014
Yupi! The Orientor, Geometrycoercer, LeftRightSpatialCalculator, Listexploder and Statisticscalculator does it!

takashi
Celebrity
  • February 19, 2014
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

jaro
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 19, 2014
OK, yours is faster.