Skip to main content
Question

Unable to find transformer which gives asset containing polygon.


Actually I have some polygons and poles(asset) and I want those polygon which contains these poles. Please ​help me regarding this .

I tried spatialfilter for this but it gives assets which are in polygon but mainly I want polygons which contains poles.

Hoping to get some help from you guys!!

Thanks in advance:)​

8 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • December 21, 2020

It sounds like you might just need to switch the filter and candidate around in the spatial filter. If you send the poles (points) to the filter, and the polygons to the candidate and choose Filter Within Candidate you should just get polygons that contains poles.

 

If you need information about what poles are within a polygon you are better off using a spatial relator rather than a spatial filter


david_r
Evangelist
  • December 21, 2020

I agree with @ebygomm​ . An alternative would be to use the PointOnAreaOverlayer and use the Area output. Check the value of _overlaps > 0 to filter out the polygons with one or more asset points.


ebygomm wrote:

It sounds like you might just need to switch the filter and candidate around in the spatial filter. If you send the poles (points) to the filter, and the polygons to the candidate and choose Filter Within Candidate you should just get polygons that contains poles.

 

If you need information about what poles are within a polygon you are better off using a spatial relator rather than a spatial filter

Actually I tried to switch candidate and filter but results which I got are not correct ones. It gives both polygon containing no poles and polygon which contains poles.

Spatial Relator also did the same.​


david_r wrote:

I agree with @ebygomm​ . An alternative would be to use the PointOnAreaOverlayer and use the Area output. Check the value of _overlaps > 0 to filter out the polygons with one or more asset points.

I tried also your suggestion but what it is doing,suppose 1100 polygon and using this filter against poles.It results same 1100 polygons .for this I verified through map viewer where I searched polygon no and it did not contain any pole.


david_r
Evangelist
  • December 21, 2020
sanchigupta1234 wrote:

I tried also your suggestion but what it is doing,suppose 1100 polygon and using this filter against poles.It results same 1100 polygons .for this I verified through map viewer where I searched polygon no and it did not contain any pole.

Did you use a Tester after the PointOnAreaOverlayer to only include the polygons where _overlaps > 0?


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • December 21, 2020

Have you checked that both sets of data are in the same coordinate system?


ebygomm wrote:

Have you checked that both sets of data are in the same coordinate system?

Yes I checked both are in same coordinate system​


david_r
Evangelist
  • December 22, 2020
sanchigupta1234 wrote:

Yes I checked both are in same coordinate system​

Also try sending both the polygons and the points to an Inspector and visually check that they actually overlap.


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