How to create connections between points and nearest roads?

824
6
06-27-2023 05:48 AM
abranches
New Contributor II

Hello everyone! 

I have 121 centroid points and i need to create connections (lines) between them and the nearest road, in order to connect the points to the network. 

abranches_0-1687869856763.png

I tried to follow the steps in this article: https://support.esri.com/en-us/knowledge-base/how-to-create-connection-lines-between-a-point-and-a-l... but without success. In the last step, it says "Not enough points to create a line for value ..." I used the Near tool, calculated the distance, Near_X, Near_Y, but i can't create the connections.

Sorry, i don't have a lot of experience with ArcGIS Pro.

0 Kudos
6 Replies
CaseyC
by
New Contributor II

I feel like the method you linked should work just fine. Just out of curiosity how many point features are in your original point layer and how many point features are in the new point layer you created that are based off of the near xy data? Is it the same number of features in both?

Casey Carpenter
0 Kudos
abranches
New Contributor II

Hi Casey, thanks for replying!

The attribute table of the original point layer has 121 rows and the new point layer has 242 rows. In the new one, starting on row 122, there is the object ID column and shape "point" but all other values are "<Null>"

abranches_0-1687875929522.png

 

CaseyC
by
New Contributor II

I see. Maybe I should try this process myself so I can see each step in action. From your screenshot of the Append Points table (result of step 9?), it looks like all of the line_points were appended to the append_points with null values.

And I apologize as I just sort of talk this out for myself, but I guess when you are trying to run the points to line tool in step 10 the tool is failing because of those null values. So it tells you that there aren't enough points to create lines.

Does your Append_Points feature plot those null value features on the map? Or do you only see the original 121 point features when you have that layer showing on your map? Sorry I'm not more help here.

 

Casey Carpenter
Jordan_Brasher
Esri Contributor

Hi there. Is there a reason you need to create line segments to connect the points to the network, rather than just snapping the points to existing lines? Is it because you'd like to keep the points in the centroid location? I ask because the Add Locations tool can be used to snap points to a network dataset.

0 Kudos
abranches
New Contributor II

Hi Jordan, how are you?

Yes, I need to keep the centroid points at those locations. We are doing a study on traffic zones and instead of using the original zones which are different polygons, we are using hexagons of the same area. These points are the centroids of the hexagons that intersect any building in the study area. So we need to add these points to the traffic network.

0 Kudos
Jordan_Brasher
Esri Contributor

@abranches if you're using the ConnectionNum field to create the line segments, then that field can't have null values because it's being used to connect the points. That could be the source of the issue. I would re-calculate that field to ensure there aren't any null values and try it again.

See this similar case: https://community.esri.com/t5/data-management-questions/points-to-line-tool-not-working/td-p/445463