Skip to main content
Question

Point in Polygon query

  • June 10, 2019
  • 5 replies
  • 67 views

sunsilk11
Contributor
Forum|alt.badge.img+6

Hi I have a point and polygon feature class.

I need to find out the ids of polygons which contains greater or equal to than specified numbers of points. Also I need to get the point attributes for each of these polygons.

The number of points are defined in an xml file (see attached). I will need to create an alert record in a table when the number of point reaches the defined count values.

Any suggestions ?

 

testconfig.xml

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • June 10, 2019

I would start by using the PointonAreaOverlayer transformer. This adds a list of attributes from the points on the area and an _overlaps attribute with the number of points per area.


sunsilk11
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 66 replies
  • June 10, 2019

I would start by using the PointonAreaOverlayer transformer. This adds a list of attributes from the points on the area and an _overlaps attribute with the number of points per area.

Thanks. But thos doesnt provide me the flecibility to join with xml file and what I need.


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • June 10, 2019

Thanks. But thos doesnt provide me the flecibility to join with xml file and what I need.

No, for that you will need to read the XML (XML reader) and a FeatureMerger transformer.

Then use the Tester to compare the values.

Hope this helps.


sunsilk11
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 66 replies
  • June 10, 2019

I would start by using the PointonAreaOverlayer transformer. This adds a list of attributes from the points on the area and an _overlaps attribute with the number of points per area.

  1. ok. _overlaps gives the count per polygon. but I also need the list of points for each polygon. Any idea?

 


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • June 10, 2019
  1. ok. _overlaps gives the count per polygon. but I also need the list of points for each polygon. Any idea?

 

The PointonAreaOverlayer allows you to define a list to store the attributes of the points that are inside the area. Have a look at the documentation for the transformer here