Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2565

Add locations (network analysis extension) via arcpy vs arctoolbox wizard

$
0
0
Hi,

I need to programatically compute the the shortest distance between every two points in a network (the Input locations come from a different layer from the sub layers of the input network layer). for this i'm trying to explore if i can add locations (stops) at every two points and compute the shortest distance between them. as i need points at shortest distance for every point i plan to write a method that would compute shortest network distance between every two points.

to be specific, i have generated a network dataset from a street layer say streets_nd and when i make a new route layer, it generates Stops, Barriers etc sub layers by default with no data in the corresponding attribute tables as i do not specify any of them. But i intend to specify the Stops sub layer from the points in another layer called "streets".of finding shortest distance

How do i go about it. Is there a better way achieving it.

Also, if i manually add stops (add location) and examine the properties, the location (stop) is given a name of "Graphic pick 1" but when i need to pass it as a parameter, what should be it be? the SourceID and SourceOID of the Stops, i notice are FID and OBJECTID of the corresponding points in streets layer.

Thanks in advance.

Viewing all articles
Browse latest Browse all 2565

Trending Articles