Question

Issue: Group by on PointOnAreaOverlayer, LineOnAreaOverlayer

  • 11 November 2019
  • 6 replies
  • 3 views

Badge +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

Userlevel 2
Badge +17

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

Badge

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.

Userlevel 5
Badge +25

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

Badge

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

Badge +4

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?

Userlevel 5
Badge +25

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.

Reply