Skip to main content

Is there a way to incorporate an "exclude by attributes" clause in the NeighborPairFinder?

I have a project where I am averaging the distance between a number of parallel(ish) lines. The distance between these lines varies (hence the need to capture the "average/mean" distance.

 

 

The NeighborPairFinder is 99% of what I need. The problem is that the only way to take a number of points (rather than just the closest on the line) is to densify and then chop the line. Next, I compare those points back to the line feature. 

 

 

Again, this works great but I am only able to capture the 2nd nearest feature as the first nearest is itself.

 

 

I've seen other attributes that have included this feature and would love if someone knew a workaround to this problem.

 

 

Thanks

 

 

 

Matt
If you use neighborfinder and create a list based on the close candidates, you can sort the list by distance and extract out the nearest "n" features that you are looking for based on the distance threshold that you selected. 

 

 

This will allow you to get all the neighbours in a specific search radius. 

 

 

Does this help?

 

 

Laura
Hi Matt,

 

 

I agree with Laura, the neighborfinder is a better choice that provides more options (list contents).

 

Cheers,

 

Itay
Hey Itay and Laura,

 

 

I've thought about that but am struggling to see how I can apply it. Again, the reason is I need the two offset wells on the same plane. They are parallel (ish) and the well path varies which is why I need the "average" distance between to well paths.

 

 

Also, I agree that the lists feature is applicable and needed. The catch with all of those is that there are well paths that go in the opposite direction from the same surface hole (starting) point. Those will get captured as well and I can't and dont need those. Also, by using the vertices (ie taking the line and chopping it, The neighborfind finds itself. How might I go about excluding the same feature?

 

 

It seem simple in my head but I've been staring at this project for so long that I've got blinders on and am failing to see the bigger picture or other options. 

 

 

Any help would be MUCH appreciated.

 

 

Not sure if the img was embedded so here's the link:

 

https://www.dropbox.com/s/usf2itn38qn65t5/LEFT-RIGHT-Avg-Screenshot.jpg

 

 

 

 

 

 

Thanks

 

 

 

Matt

Reply