Skip to main content
Question

Point in Polygon query


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

5 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • 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
  • June 10, 2019
erik_jan wrote:

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+18
  • Contributor
  • June 10, 2019
sunsilk11 wrote:

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
  • June 10, 2019
erik_jan wrote:

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+18
  • Contributor
  • June 10, 2019
sunsilk11 wrote:
  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


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