Skip to main content

I have many polygons containing many points and polygons can overlap. I need to create an output that will contain as many polygon records as their are points inside. That way I can compare the attributes of the polygon with the attributes of all the points inside. I am using SpatialRelator with the polygons as the Requestor and the Points as the Supplier. Then a Listexploder, but the output of the point attributes are scrambled.

I would use the PointonAreaOverlayer (generate a list), then the ListExploder on the Area output port of the PointonAreaOverlayer. That should give you the required result.


I would use the PointonAreaOverlayer (generate a list), then the ListExploder on the Area output port of the PointonAreaOverlayer. That should give you the required result.

Thank you erik_jan

 

I have tried this but the point attributes just gets repeated. So if I have for instance 1 polygon overlapping 4 points with id's 1,2,3 and 4 then the results will contain 4 records (which I am happy with), but all the point ids will be = 1. On the PointOnAreaOverlayer I have tried Areas First Yes and No - Same result. Thank you

 

 


Thank you erik_jan

 

I have tried this but the point attributes just gets repeated. So if I have for instance 1 polygon overlapping 4 points with id's 1,2,3 and 4 then the results will contain 4 records (which I am happy with), but all the point ids will be = 1. On the PointOnAreaOverlayer I have tried Areas First Yes and No - Same result. Thank you

 

 

If you have an id field in both your area and point features then you probably need to set conflict resolution under attribute accumulation to "Use Incoming"

 

 


If in doubt use prefix list name to keep the right list attribute


If in doubt use prefix list name to keep the right list attribute

The point and area shapefiles does not contain the same attribute names. The id field in the point layer is call 'entity-id' and in the polygon layer 'guid'.

 


If in doubt use prefix list name to keep the right list attribute

OK, Prefix_incoming produced the needed results. Not sure why and how. Thank you Owen.

 

 


If in doubt use prefix list name to keep the right list attribute

when you build a list the attributes of the first record get appended as well. by prefixing the list attributes you make sure you only keep those and there is no conflict

 

 


Reply