|
POST
|
If I understand correctly, you want to find the optimal solution that minimizes the distance along the roads from the villages to the wastewater treatment plant potential sites. So, for your network analysis problem, you need to optimize distance rather than travel time. You need to set the Travel Mode option (it's on the Location-Allocation ribbon) to use a travel mode that optimizes distance. Your post doesn't mention what network data source you're using, but if you're using ArcGIS Online or Streetmap Premium, there should be a "Driving Distance" travel mode that solves for distance instead of drive time. If you are using your own network dataset, then it's up to you to construct a travel mode on that network dataset that uses an impedance attribute that calculates distance instead of time. If you clarify what type of network you're using, I can provide further detail on that if necessary.
... View more
12-03-2020
03:26 PM
|
1
|
0
|
7247
|
|
POST
|
Actually, that's not what I recommend. If you want to calculate the travel time between specific pairs of origins and destinations, you need to use the Route solver. OD Cost Matrix only lets you calculate travel time between all origins and all destinations, with some constraints (max travel time, max number of origins to find). It does not let you specify that you want to only calculate the travel time between specifically-designated pairs. To calculate travel time between predetermined pairs, use the Route solver, use the RouteName field in the input stops to designate a unique name for the origin-destination pair. Let's say you want to calculate a route from A to B and A to C and D to F. You need to load A and B with a route name of AB (or something like that, and also A (again) and C with a route name of AC, and also D and F with a route name of DF. When you solve the route analysis, it will calculate three separate routes, one from A to B, one from A to C, and one from D to F.
... View more
11-30-2020
03:20 PM
|
0
|
0
|
3229
|
|
POST
|
If I understand your message correctly, you are trying to count the number of destinations reachable from each origin within a 30-minute travel time. Is that correct? (If you are trying to calculate the travel time from a specific origin to a specific destination - like you have specifically matching pairs - then this is a different problem). You can definitely do this with the OD Cost Matrix tool by using a Cutoff. You can also do this with Closest Facility using a Cutoff and just setting the number of facilities to find to something really big so it finds more than the closest one. Use Closest Facility if you need to examine the traversal result; otherwise, use OD Cost Matrix because it runs faster.
... View more
11-30-2020
03:03 PM
|
0
|
2
|
3233
|
|
POST
|
Yes, the OD Cost Matrix will use any non-restricted network components, including streets and transit lines. Otherwise, how would the traveler walk from their initial location to the bus/rail stop in the first place, and how would they make transfers from one line to another if they have to walk around the block or something? In some cases, walking the whole way may simply be faster or more practical than taking transit. The OD Cost Matrix tool does not store the "traversal result", meaning after it has done the calculation of travel time and distance, it doesn't remember anything about what parts of the network were used. So, in general, for any OD Cost Matrix problem, it is not possible to determine which streets, or transit lines, were used. If you want this information, you can use the Closest Facility solver or the Route solver. For Route or Closest Facility, you can use the Copy Traversed Source Features tool to determine which network dataset components were used and post-process those results however you want. For the old Add GTFS to a Network dataset toolbox (which is no longer supported, by the way), you can use the special Copy Traversed Source Features (with Transit) tool, which wraps the core version of the tool with some special transit information. Regarding when you can add multiple GTFS datasets: In the old Add GTFS to a Network Dataset tool, just dump both of them in as input when you run the 1) Generate Transit Lines and Stops tool. I encourage you to spend some more time with that User's Guide if you're having trouble. Because the tool is deprecated, I cannot provide extensive help with it. As for whether you should or shouldn't combine your multiple datasets - It really depends on what you're trying to do. If you are trying to model the way real passengers travel, then you should probably include both. On the other hand, if you're trying to model the differences in bus service vs rail service, you should probably keep them separate. If you switch to using the newer tools in ArcGIS Pro, there is a way to exclude transit modes in the analysis (see the section on supported parameters here). So, you could build the network to include bus and rail, but for a particular analysis, you could "turn off" rail service using the "Exclude modes" parameter.
... View more
11-30-2020
02:38 PM
|
1
|
4
|
3238
|
|
POST
|
The OD Cost Matrix tool calculates the travel time or distance between each origin and each destination using the specified network dataset. The 40,000 lines you see just represent these origin-destination pairs. You can look at the Lines attribute table to see the time or distance that was calculated. When you construct a network dataset using streets and GTFS data, almost certainly it will be technically possible for the traveler to travel from each origin to each destination using the streets, without using any transit at all. If the fastest route between Origin A and Destination B is just to talk on the streets, you will still get a resulting line connecting A to B, and the travel time will reflect the walk time. The minor differences you see in your bus analysis and your rail analysis probably reflect certain cases where the travel time is different because the traveler is using some transit service. Note that it is possible to combine both bus and rail into the same network dataset even if they are in different GTFS datasets. You just add both of them as input when creating the network.
... View more
11-30-2020
01:14 PM
|
1
|
6
|
3240
|
|
IDEA
|
11-25-2020
10:48 AM
|
0
|
0
|
1877
|
|
IDEA
|
11-25-2020
10:46 AM
|
0
|
0
|
1822
|
|
IDEA
|
11-25-2020
10:45 AM
|
0
|
0
|
1631
|
|
POST
|
It is not available in ArcGIS Pro yet. We are actively working on this feature and hope to make it available to customers soon.
... View more
11-25-2020
08:18 AM
|
1
|
0
|
1167
|
|
POST
|
Unfortunately, no, ArcGIS Pro does not have any easy-to-use tools to make schematic diagrams of non-overlapping transit lines on a map. Here is a nice article describing the many challenges of this workflow: https://medium.com/transit-app/how-we-built-the-worlds-prettiest-auto-generated-transit-maps-12d0c6fa502f#.ips1lr3i0
... View more
11-23-2020
08:01 AM
|
1
|
0
|
5393
|
|
POST
|
DanPatterson1's link is correct. I will repost the response here (with better formatting) in case other users have this question. This behavior is as designed. The feature datasets and feature classes for network analysis layers use automatically-generated unique names. In previous releases, this was done using a numbering scheme, but this was changed later on to a string of alphanumeric characters. When writing scripts, you should not try to access the network analysis layer’s sublayers directly by their data paths, as this is not a supported workflow and the naming convention is not static or guaranteed. Instead, here are two ways to directly access the results of a network analysis: Method 1 Use this method if you have a layer-based workflow in a python script. Retrieve the output sublayer’s layer object and grab the data source from this or just use the layer object itself as input into further tools. Here is an example for a Closest Facility layer. You can retrieve the Routes sublayer object from the parent Closest Facility layer object like this: routes_sublayer = layer_object.listLayers("Routes"])[0] You can then do routes_sublayer.dataSource if you want to see the actual catalog path to the data source. You can use that catalog path or the routes_sublayer object itself as input into other geoprocessing tools. Note that with the release of ArcGIS Pro 2.7, you will be able to use the new arcpy.na.GetNASublayer() function to retrieve the sublayer of a parent layer instead of the listLayers() method. To see a full workflow example similar to this, see the “MakeODCostMatrixAnalysisLayer example 4” code sample here: https://pro.arcgis.com/en/pro-app/tool-reference/network-analyst/make-od-cost-matrix-analysis-layer.htm (This uses OD Cost Matrix instead of Closest Facility, but it’s the same idea.) Method 2 This is an entirely different way of solving a network analysis problem in python, one that does not involve layers at all. In ArcGIS Pro, we introduced a new python module, arcpy.nax, that provides a new python interface for doing network analysis. The new interface is more pythonic and easier to use in many ways. You can learn the basics of how it works here: https://pro.arcgis.com/en/pro-app/arcpy/network-analyst/performing-network-analysis.htm To summarize, you create a network analysis object for the solver you want, load the desired inputs, solve, and then retrieve the results in one of several ways. You can use the export() method on the solver result object to save the outputs to a feature class. You can also retrieve the outputs using a cursor, so it’s possible to retrieve only the fields you care about and write them directly into another table that already has your desired schema.
... View more
11-17-2020
01:50 PM
|
0
|
0
|
2252
|
|
POST
|
This may not apply to you, but if you have GTFS public transit data, you should be using the procedure described in this tutorial: https://pro.arcgis.com/en/pro-app/help/analysis/networks/create-and-use-a-network-dataset-with-public-transit-data.htm
... View more
11-17-2020
01:41 PM
|
0
|
0
|
2600
|
|
IDEA
|
In ArcGIS Pro, the default value for the Exclude Restricted Portions of the Network parameter is True. This means that by default, points will not be located on restricted elements. This is different from ArcMap, where the default was False. In Pro, we switched the default to True because we believe this is the setting most, if not all, users need. Furthermore, we could not come up with a compelling reason why a user would want to set the parameter to False, so we hid the parameter in the UI. It is maintained in the python tool signature for backwards compatibility. Additionally, Pro automatically relocates points at solve time if they are located on an element restricted by a restriction or impedance attribute or a barrier. Consequently, if a user runs Add Locations with the Exclude Restricted Portions of the Network parameter set to False, the point would simply get relocated at solve time anyway. Please let us know if you have a specific reason why you want to set Exclude Restricted Portions of the Network to False, and we will reevaluate.
... View more
11-17-2020
01:34 PM
|
0
|
0
|
2823
|
|
POST
|
Just to follow up. I ran GTFS To Network Dataset Transit Sources with your GTFS data. Looking at the output, I see the following: These three rows in stops.txt have incorrect lat/lon values: "000001042301","","Lengfeld, Themarer Straße",,"5.088988000000","1.112697000000",1,,,"" "000204230101","","Lengfeld, Themarer Straße",,"5.088988000000","1.112697000000",0,"000001042301",,"" "000204230102","","Lengfeld, Themarer Straße",,"5.088988000000","1.112697000000",0,"000001042301",,"" I'm guessing it should be 51.xxx and 11.xxx instead of 5.xxx and 1.xxx based on the lat/lon of the other stops. Right now these are placed off the coast of Africa. These three rows in stops.txt have an incorrect longitude: "de:03252:2800:1:1","","Hemeringen, Heinegras",,"52.127996000000","179.999997000000",0,"000000000037_G",,"" "de:03252:2800:1:2","","Hemeringen, Heinegras",,"52.127996000000","179.999997000000",0,"000000000037_G",,"" "000000000037_G","","Hemeringen, Heinegras",,"52.127996000000","179.999997000000",1,,,"" 179.999 is still within the valid range of longitudes, so the tool did not throw an error, but these stops are out in the Pacific ocean. However, none of these actually throw errors in that tool. I ran some python code mimicking the part of Connect Network Dataset Transit Sources To Streets that threw the error, and there were no errors. I cannot explain why you got errors. I am testing on the not-yet-released Pro 2.7, so it's possible that we have recently fixed a bug that caused the geometry errors in the first place. I'm not sure. Anyway, from your previous comment, it sounds like your issue was resolved by running the Repair Geometry tool. If that's the case, I will give up on trying to make sense of this issue. Good luck with your thesis!
... View more
11-10-2020
03:02 PM
|
0
|
1
|
1454
|
| 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
|