Skip to main content
Question

Count Number of Points in Each Polygon


parashari
Forum|alt.badge.img+2

Helo FME Users, I am using FME for my data processing tasks, and I am trying to determine the number of points that fall within each polygon in my dataset.

Specifically, I have a set of polygons and a corresponding set of points distributed across a geographic area. My objective is to count the number of points contained within each polygon. However, I am unsure about the most efficient way to achieve this using FME.

Thank you in advance for your time and expertise.

image

3 replies

dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • June 22, 2023

You can use the SpatialRelator, which will give you an overlaps count.


parashari
Forum|alt.badge.img+2
  • Author
  • June 23, 2023
dustin wrote:

You can use the SpatialRelator, which will give you an overlaps count.

Thank you for your response @dustin​. I would like to give all the points a unique value that are within a dissolved polygon of 500m.


featuremichael
Supporter
Forum|alt.badge.img+8

You can use an PointonAreasOverlayer transformer - if the Buffer has Attributes that are unique - u can use "merge attributes" in the pointonaresoverlayer transformer to give the attributes from the buffer area to the points.

if our buffer areas didnt have a uniqe number or value - you can make an easy number with the counter transformer - use it for your buffer areas to give them an "_counter"-attribute = numbers.

 

 

 


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