Skip to main content
Question

Issue: Group by on PointOnAreaOverlayer, LineOnAreaOverlayer

  • November 11, 2019
  • 6 replies
  • 21 views

Forum|alt.badge.img+4

When I use the PointOnAreaOverlayer and the LineOnAreaOverlayer on FME Desktop 2019.1, the resulting _overlaps appear correct.

When I set the 'Group by' option to group by an attribute on the either the PointOnAreaOverlayer or the LineOnAreaOverlayer, the resulting _overlaps is set to 0 for all features.

 

@steveatsafe

6 replies

takashi
Influencer
  • November 11, 2019

Hi @dmatranga, are you sure that the point (line) features and the area features have the Group By attribute with common name?


p.jeremie
Contributor
Forum|alt.badge.img+6
  • Contributor
  • November 13, 2019
takashi wrote:

Hi @dmatranga, are you sure that the point (line) features and the area features have the Group By attribute with common name?

Hi @takashi, can you add more details to your answer. I am trying to understand how to use the group by in PointOnAreaOverlayer too and exeprience the same as @dmatranga.


redgeographics
Celebrity
Forum|alt.badge.img+49
p.jeremie wrote:

Hi @takashi, can you add more details to your answer. I am trying to understand how to use the group by in PointOnAreaOverlayer too and exeprience the same as @dmatranga.

The Group By option in those transformers will only perform the overlays for features that have the same values for the attribute(s) selected. It is as if you would set up a separate transformer for every unique combination of those selected attribute(s).


p.jeremie
Contributor
Forum|alt.badge.img+6
  • Contributor
  • November 13, 2019
redgeographics wrote:

The Group By option in those transformers will only perform the overlays for features that have the same values for the attribute(s) selected. It is as if you would set up a separate transformer for every unique combination of those selected attribute(s).

Thanks @redgeographics it is clearer for me now.

Not what I need. I have posted a question regarding my issue : https://knowledge.safe.com/questions/102372/count-points-in-area-based-on-an-attribute-value.html


Forum|alt.badge.img+4
  • Author
  • November 13, 2019
takashi wrote:

Hi @dmatranga, are you sure that the point (line) features and the area features have the Group By attribute with common name?

Hey @takashi, the attributes for the points and areas do not have a common name.

 

Example:

  • Takashi owns 12 homes (points) that fall within 3 areas (polygons), and there is an unknown quantity of homes within each of these 3 areas.
  • Dan owns 8 homes (points) that fall within the same 3 areas (polygons), and there is an unknown quantity of homes within each of these 3 areas.

 

Point Data

OwnerAddressTakashi123 A StreetTakashi

 

456 B Street

 

Dan123 C StreetDan456 D Street......

 

Polygon Data

GRID_IDA1A2A3

 

Sending to the PointOnAreaOverlayer to count how many houses Takashi and Dan have within each of the 3 areas, 'Group by' is set to 'Owner' and I expect the following result:

GRID_IDOwner_overlapsA1Takashi9A1Dan1A2Takashi3A2Dan1A3Takashi0A3Dan6

 

Does that kind of process work with the PointOnAreaOverlayer 'Group by'? Or am I missing something?


redgeographics
Celebrity
Forum|alt.badge.img+49
dmatranga wrote:

Hey @takashi, the attributes for the points and areas do not have a common name.

 

Example:

  • Takashi owns 12 homes (points) that fall within 3 areas (polygons), and there is an unknown quantity of homes within each of these 3 areas.
  • Dan owns 8 homes (points) that fall within the same 3 areas (polygons), and there is an unknown quantity of homes within each of these 3 areas.

 

Point Data

OwnerAddressTakashi123 A StreetTakashi

 

456 B Street

 

Dan123 C StreetDan456 D Street......

 

Polygon Data

GRID_IDA1A2A3

 

Sending to the PointOnAreaOverlayer to count how many houses Takashi and Dan have within each of the 3 areas, 'Group by' is set to 'Owner' and I expect the following result:

GRID_IDOwner_overlapsA1Takashi9A1Dan1A2Takashi3A2Dan1A3Takashi0A3Dan6

 

Does that kind of process work with the PointOnAreaOverlayer 'Group by'? Or am I missing something?

Don't set the Group By, but let the PointOnAreaOverlayer create a list on the areas, then use a ListHistogrammer (on the owner attribute) to get your end result.


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