Skip to main content
Solved

Many points in many polygons

  • September 2, 2016
  • 7 replies
  • 15 views

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.

Best answer by owen

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

View original
Did this help you find an answer to your question?

7 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • September 2, 2016

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.


  • Author
  • September 5, 2016
erik_jan wrote:

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

 

 


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • September 5, 2016
etienne wrote:
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"

 

 


owen
Forum|alt.badge.img+1
  • Best Answer
  • September 5, 2016

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


  • Author
  • September 6, 2016
owen wrote:

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

 


  • Author
  • September 6, 2016
owen wrote:

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.

 

 


owen
Forum|alt.badge.img+1
  • September 6, 2016
owen wrote:

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

 

 


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