Skip to main content
Question

overlaping polygons statistics

  • February 18, 2014
  • 5 replies
  • 8 views

jaro
Contributor
Forum|alt.badge.img+1
  • Contributor
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.

5 replies

fmelizard
Safer
Forum|alt.badge.img+19
  • 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
Evangelist
  • 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.

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