Skip to main content
Solved

Boost NeighborFinder, is that possible?

  • March 11, 2022
  • 3 replies
  • 37 views

juanmahere
Supporter
Forum|alt.badge.img+13

Hi all,

I'm having a bottle-neck on a workbench due to the use of the transformer "NeighborFinder". This operation only is taking around 18 hours.

 

The goal is to find around 200K points to the nearest Polygon (having around 10K). Points that I want are quite near, not touching some times. Also, there are some points that are farther and I don't want to have them on the "MatchedBase" output (red ones):

sample 

These are the transformer parameters:

 

 

nf 

 

Also, attributes from Polygon need to be transferred.

I don't see the option to make the search by Groups, since I cannot foresee which points belongs to certain Polygons beforehand. Also, reducing the number of features is not possible.

 

Any suggestion?

Something that could be faster on that search?

Thanks!

Juanma,

Best answer by redgeographics

Just throwing a random idea out there: what if instead of using the NeighborFinder you buffer the polygon slightly and then use a Clipper? It might be faster.

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.

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • Best Answer
  • March 11, 2022

Just throwing a random idea out there: what if instead of using the NeighborFinder you buffer the polygon slightly and then use a Clipper? It might be faster.


juanmahere
Supporter
Forum|alt.badge.img+13
  • Author
  • Supporter
  • 47 replies
  • March 11, 2022

Hi @Hans van der Maarel​ ,

I was about to reply to myself with that solution. Thanks!

What I've done is to switch that NeighborFinder with a Buffer on Polygons (same amount as NFinder) and PointOnArea, after that a simple Tester to know what's inside:

 

imageIt is now taking just a few minutes!

Thanks for coming with that idea too, @Hans van der Maarel​ !

Juanma,

 


DanAtSafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 345 replies
  • March 11, 2022

Hi @juanmahere​ Can you share your data and workspaces with us? It looks like we need to get the NeighborFinder to catch up to the PointOnAreaOverlayer! https://community.safe.com/s/submit-case Thanks!