Skip to main content

Hello Forum,

 

I’ve read in a points dataset (properties) and a estates dataset (polygons). I need to do two things:

 

1)

add an area calculation in a new field to the estates polys. This has been achieved with an AreaCalculator.

 

2) add a count of the amount of properties (points) falling within each estate polygon using an PointOnAreaOverlayer.

 

See workspace image attached.

 

I’m finding that the output is counting some estates (polys) two or three times. However when looking at the source data these features are there only once, which is correct.

 

See Inspectors image attached.

 

I’ve played around with GroupProcessing and some other settings, but couldn’t get it right.

 

Can you advise, please.

 

Thanks,

Stuart

 

pointInPolyWorkspace 

pointInPolyInspectors

Hi Stuart,

Have you considered using a SpatialRelator instead, with polygons as requestor and points as supplier?

The count of related points (>=0) that intersect each polygon will be appended to the polygon features as _related_suppliers attribute in this case.Spatial Relator configuration 

Alternatively if you must use the PointOnAreaOverlayer, you will likely need to use an Aggregator with a GroupBy on (polygon) id, and Attributes to Sum as _overlaps .

Point on Area Overlayer to Aggregator ExampleThis is because the PointOnAreaOverlayer deaggregates multi-part polygons, such as your estates. Points are overlayed on each of those separate parts, with the overlaps recorded separately. That is why duplicates are returned within your workspace.


Hi @churchfraser. That has worked well. It's given me the count. But importantly it hasn't doubled up on some of the input polygons. Perfect. Thank you!


Reply