|
POST
|
Unfortunately there is not. With the upcoming release of Pro 2.8, we will have two new topics in the nax documentation layout out more detail on how to load inputs and access results, so hopefully that will be helpful. We definitely want to continue improving our documentation to alleviate confusion! I would be interested to learn more about what specific things you have been confused about. If you don't want to leave more details here in the public comments, feel free to send me a private message. I will listen to whatever has confused you and see what I can do to fix it for the next release.
... View more
04-12-2021
08:49 AM
|
0
|
1
|
4887
|
|
POST
|
If you add that saved .lyrx file to Pro, does it load up in the map as a valid OD Cost Matrix layer (ie, it shows up in the map, it's not broken, and you can see the purple OD Cost Matrix tab)? When you use the Save To Layer File tool, sometimes it gives you two option of which layer to save that have the same name, like "OD Cost Matrix". The first one is usually the actual Network Analyst layer, and the second one is a regular group layer representation of the layer. If you save the second one, it loses its special Network Analyst stuff. I realize this is kind of strange, and I don't know why it works like this, but it seems possible that this is what happened to you.
... View more
04-12-2021
08:13 AM
|
0
|
0
|
2159
|
|
POST
|
What error message does the tool give you? If you need specific help figuring out how to do the joins and getting the tool to run, you might have better luck contacting Esri Support or Support through the distributor in your country.
... View more
04-12-2021
08:10 AM
|
0
|
0
|
2395
|
|
POST
|
The ServiceArea class has properties for this: https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/servicearea.htm The properties you want are "searchQuery", "searchTolerance", and "searchToleranceUnits". There is no property for search criteria, but from your script, it seems like you only want the default anyway, so that shouldn't be a problem.
... View more
04-12-2021
08:07 AM
|
0
|
3
|
4896
|
|
POST
|
You can use the Network Analyst Route solver to do this. Here is a tutorial introducing the basics of the Route solver: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/route-tutorial.htm You do not need a batch process. You can calculate the Route between each start/stop pair all at once as long as you set up the problem correctly. To specifically create routes between paired start/stop locations, you need to generate a unique Route ID for each pair. When you load all the point locations into the Stops sublayer of the Route layer, map the Route IDs into the RouteID field. Each unique RouteID value in the Stops sublayer will be calculated as a separate route. Example Stops: StopID RouteID Person A Route 1 Destination A Route 1 Person B Route 2 Destination B Route 2 The output will contain two routes, one from Person A to Destination A and another from Person B to Destination B.
... View more
04-12-2021
08:03 AM
|
2
|
1
|
2343
|
|
POST
|
I think you should check out the Copy Traversed Source Features tool. This might be a better option than Select By Location. If I understand correctly, you are calculating a bunch of routes from a set of points to their closest facilities. The set of points has some attribute with the number of people in it. When you solve the Closest Facility problem, each route is associated with the original input point. Can't you just do a join to transfer the "number of people" field into the output Routes? Then, using Copy Traversed Source Features or a spatial join or whatever, you should be able to sum the number of people for each road segment since that field is already in the Routes table.
... View more
04-07-2021
03:12 PM
|
0
|
2
|
2422
|
|
POST
|
It sounds like you already solved the Closest Facility problem and used the Copy Traversed Source Features tool to determine which road segments are used by each route. The output of that tool contains the Route ID. I think you should just be able to do a some combination of joins to join the population numbers to the Route IDs and use Summary Statistics tool to count the number of times each road segment is used multiplied by the population. Or some combination of those things.
... View more
04-07-2021
11:27 AM
|
1
|
4
|
2436
|
|
POST
|
No, Network Analyst does not pass through fields the way you're describing. You just need to do a couple of joins.
... View more
04-01-2021
01:06 PM
|
0
|
0
|
4325
|
|
POST
|
Ah yes, sorry. You're right. The arcpy.nax solver objects do not allow you to instantiate them with a network dataset that does not have any travel modes, so unless the travel mode is actually a property of the network (which you cannot do), then you will not be able to use the solver objects. Your best bet is working with the network dataset templates.
... View more
03-31-2021
02:17 PM
|
0
|
0
|
5182
|
|
POST
|
I don't have any specific examples. However, you can do exactly what you said. Just do: tm = arcpy.nax.TravelMode() Then update the properties of the travel mode object, which are listed in the documentation. tm.name = "My awesome travel mode"
# Auto-generated distance-based impedance attribute created by running
# Create Network Dataset
tm.impedance = "Length" I think you can leave the other properties as default. Not sure. You will have to experiment with it.
... View more
03-31-2021
01:39 PM
|
0
|
3
|
5194
|
|
POST
|
You cannot define a travel mode or alter any other properties of the network dataset from standalone python. We just don't have python methods and classes in place to support that. The Create Network Dataset tool creates a very basic bare-bones network with a single distance-based impedance attribute. If that's all you need, and you want to make a travel mode from that to use in your analysis, you can call arcpy.nax.TravelMode() and define it on the fly in your script. However, I suspect it's more likely that you will need to customize your network in more detail to fit your needs. You have to do this manually in the ArcGIS Pro UI. Once you have done it once, you can create a template from that network using the Create Template From Network Dataset tool. If you need to recreate similar networks with the same schema and properties in your code workflow, you can use this xml template with the Create Network Dataset From Template tool. Hope this helps!
... View more
03-31-2021
01:20 PM
|
0
|
5
|
5200
|
|
IDEA
|
03-10-2021
08:07 AM
|
0
|
0
|
5082
|
|
IDEA
|
Okay, I understand the problem. I don't know that there is a good way for us to fix this since, until we actually solve the network analysis problem, there is no way for us to know that the distances between each pair are less than the cutoff distance. I think for now to solve this problem, you need to chunk up your data into small geographic areas and solve it (like do it separately for each city). Alternatively you could create or purchase a network dataset so you can solve it using local data.
... View more
03-10-2021
07:53 AM
|
0
|
0
|
5087
|
|
IDEA
|
Okay, I think I'm starting to understand the issue you're describing. Are you using the ArcGIS Online services as the network data source for your Route layer?
... View more
03-09-2021
01:19 PM
|
0
|
0
|
5095
|
|
IDEA
|
03-09-2021
08:05 AM
|
0
|
0
|
5104
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 1 | 06-12-2026 01:53 PM | |
| 1 | 04-21-2026 08:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|