Skip to main content

I've searched for a solution to this but none of the other posts seem to provide the minor detail I'm missing.

My goal: I need to find the distance "as the crow flies" between street intersection points (point geometry features).

What I have: Street Intersection points feature set with a unique ID field populated for each point.

 



What I've done:

1a] NeighborFinder (Street Intersection points as both the Base & Candidate inputs)

1b] Vertex Creator using the Nearest neighbor output ( Mode= Add Point ; _closest_candidate_x & _closest_candidate_y)

 


 

/2] LineBuilder (inputs are the original Street Intersection points and the Vertex Creators output points) grouping on the unique ID field.
However this process does not output any lines. What am I missing?

I had a similar requirement: https://knowledge.safe.com/idea/32529/vincentylengthcalculator.html

 

 


Step 1b should create a line between the point and its nearest neighbor (point a, adding point b creates a line)..

You should not need step 2.


Step 1b should create a line between the point and its nearest neighbor (point a, adding point b creates a line)..

You should not need step 2.

On second thought, the closest neighbor for a point (if all points are fed as base and candidate) is the point itself. Therefor it will not create a line.

 

You will need to find the closest 2 points and use a list.

 

The connect the _list{1}._closest_candidate_x and _list{1}._closest_candidate_y in the VertexCreator.

 

 


Step 1b should create a line between the point and its nearest neighbor (point a, adding point b creates a line)..

You should not need step 2.

See this image

 

 


@joshuadamron

 

To get the distance, use a LengthCalculator after the VertexCreator


Step 1b should create a line between the point and its nearest neighbor (point a, adding point b creates a line)..

You should not need step 2.

 

Thanks, you nailed it, connecting the right list outputs in the VertexCreator was my glitch. I dropped step 2.

Reply