Skip to main content
Question

Unable to find transformer which gives asset containing polygon.

  • December 21, 2020
  • 8 replies
  • 21 views

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:)​

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.

8 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • 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
Celebrity
  • 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.


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


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
Celebrity
  • December 21, 2020

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+46
  • Influencer
  • December 21, 2020

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


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
Celebrity
  • December 22, 2020

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.