POST
|
The Solve Large Analysis With Known OD Pairs tool in the GitHub repo generates routes between origins and preassigned destinations. It uses the Route solver behind the scenes, not the OD Cost Matrix solver. If you want routes between preassigned OD pairs, you can use this tool. If you want some other kind of Routes, like routes with more that two stops or routes where you don't have preassigned OD pairs, then you're right: these tools don't currently have anything for your use case. Can you explain more about what you're trying to do and the size of your problem?
... View more
02-27-2024
09:09 AM
|
0
|
0
|
388
|
POST
|
"I wish I knew how exactly the scratch gdb was possibly corrupted" Me too! I'd love to get that fixed on our end. Glad that worked!!
... View more
02-20-2024
06:54 AM
|
1
|
0
|
505
|
POST
|
One further thought (after looking at the tool code): Try printing the value of arcpy.env.scratchGDB in your code and see what it points to. Delete it, and try running the script again. I've seen cases where the scratch gdb gets corrupted, and then weird things happen. Possibly it works when you run the tool in the Pro UI because it's pointing to a different scratch gdb.
... View more
02-16-2024
03:41 PM
|
1
|
2
|
564
|
POST
|
Okay. Well I don't see anything obvious from just looking at the script, unfortunately. You may need to call Esri Support so they can dig into your data and script in detail and figure out what's happening.
... View more
02-16-2024
01:00 PM
|
0
|
0
|
568
|
POST
|
Does the tool still error if you replace "Streets" with the full path to the streets feature class? Maybe the tool isn't correctly paying attention to the workspace environment set in the script.
... View more
02-16-2024
07:17 AM
|
0
|
2
|
573
|
POST
|
Hmm, I'm not sure why you're getting that error based on what I see in the code. However, the one thing that jumps out at me is the way you're constructing filepaths in the Python script. It's safer to use os.path.join() to construct paths from multiple components rather than the + operator. It doesn't seem like the way you have them should cause an error, but it's not really the best coding practice. Try updating like this, and see if that fixes it: streets_dir = os.path.join(proj_dir, '\data\raw\Street_Centerlines\Street_Centerlines.shp')
... View more
02-15-2024
11:27 AM
|
0
|
4
|
587
|
POST
|
Hi Ryland. We don't have any tools within the ArcGIS platform that can help you create full GTFS feeds for proposed changes, unfortunately. Maybe another reader will have a suggestion, but my sense is that this is probably not the right forum to find help. Regarding how to configure your proposed changes, you have two separate ways you can think about this: Create a separate GTFS dataset for each scenario, and a separate network dataset for each. Create a single GTFS dataset that has the proposed changes in it and a corresponding network dataset, and turn on/off service for certain routes/trips for each analysis. If the changes are self-contained (like removing trips from a route or adding an entirely new route), option 2 would work okay. You can create travel modes for each scenario that configure the supported parameters on the Public Transit evaluator: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/public-transit-evaluator.htm#ESRI_SECTION1_9FF9489173C741DD95472F21B5AD8374. Those can be used to turn on/off service on routes and trips. But if the changes are at all complicated, it's easier to create separate networks for each.
... View more
02-14-2024
02:21 PM
|
1
|
0
|
230
|
POST
|
First off, if your network still shows dirty areas in the map (usually a purple box covering all or part of the network), you need to run the Build Network tool. This tool incorporates edits to the network dataset properties and feature geometry into the internal logical network. If you don't do this step and you try to solve network analysis when you still have dirty areas, any changes you made to the network might not get used. So, if you did something with your transit lines and didn't build the network, this might be the reason they are never used. If that isn't the issue, then here are the typical reasons that the transit lines are not used: The date and time you chose for the analysis has no transit service. If you chose a specific date, and that date is outside the range of valid dates in the Calendars table, then there's no service. Or, if you used a generic weekday, but the Calendars file is empty, there will be no service because you have to use a specific date for this dataset. You have a connectivity problem. It's usually where the StopConnectors meet the streets. You can use the Explore Network tool to click on a stop connector and make sure it highlights the street it appears to connect to to show that it is actually connected. Your evaluators are configured incorrectly. If you used the provided template and didn't change anything, this probably isn't the issue, but it's worth double checking that for the PublicTransitTime cost attribute, the LineVariantElements edge source uses the Public Transit evaluator. You're using the wrong travel mode, or your travel mode is configured incorrectly. If you used the provided template and didn't change anything, this probably isn't the issue, but it's worth double checking that the travel mode you're using for your analysis uses the PublicTransitTime cost attribute for its impedance and doesn't have any weird restrictions that make travel on the transit lines restricted. I noticed in your screenshot showing the table from Explore Network that the transit line is showing Prohibited in both directions. That makes it seem like a problem with your cost attribute, restrictions, or travel mode. Note that you can flip over to the Settings tab in the Explore Network pane and choose which travel mode to use with the tool, so I can't tell if you're just using the wrong travel mode in the tool or if this is actually a symptom of the problem you're trying to diagnose. In case you haven't found it, here is the text version of the tutorial that the video you watched walks through: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/create-and-use-a-network-dataset-with-public-transit-data.htm The text version has a bunch of links to other help pages that might be useful. If you still can't get your network working, I recommend you contact Esri Support. They can examine your network in detail and help you find what went wrong.
... View more
02-13-2024
06:50 AM
|
0
|
1
|
251
|
POST
|
Did you get build errors when you built the network dataset? There are a lot of turn-related checks the build process does, and it will report out specific errors. If you need to check your build errors, open the Build Network tool to build the network dataset. You likely need to rebuild the whole thing so it will look at all the turns, so check on the option to do a full rebuild. When the tool completes, if there is a warning message, check the message text for the path to the build error text file. Open the text file and check the build errors to see if it has flagged anything with your turns.
... View more
02-08-2024
06:56 AM
|
0
|
0
|
248
|
POST
|
I'm having trouble following exactly what you're describing here. The evaluator logic looks okay to me. I suspect the behavior might have something to do with locating on endpoints as I described in my other comment. If my most recent comments don't give you enough clues, you might have better luck contacting Esri Support so they can look at your network dataset in detail and help you debug it.
... View more
02-07-2024
02:43 PM
|
0
|
0
|
581
|
POST
|
Okay, if you didn't change any of the locate settings on the layer or in the Add Locations tool, then by default it won't locate on the junctions. This would explain your earlier behavior. When you said it was locating on junctions, what it was actually doing was locating on the endpoint of one of the streets at that intersection. If you had oneway restrictions or some kind of configuration that allowed travel only in one direction, then it probably had to go around so it could get to the correct endpoint. Note that there is some kind of tie-breaking logic to determine which of the endpoints it locates on, but I don't know if it's deterministic. Possibly if you re-created the feature, it might locate on a different endpoint, so the behavior might be different from one test to the next.
... View more
02-07-2024
02:40 PM
|
1
|
1
|
581
|
POST
|
Hmm, I wonder if this is a sign that your network is not connected properly somehow? If the stop is located on a junction that is only connected to one edge and not the other, then the route might have to pass the stop and loop back. It seems kind of unlikely that it would be able to travel down the road at all (that the roads would be somehow connected even if the junctions aren't), but it's a possibility. Try using the Explore Network tool to click on the roads and junctions in that area to see what they're connected to. Also, in general, locating stops on junctions can lead to some problematic behavior. For instance, if all the streets surrounding the junction are restricted, but the junction isn't, the point will happily locate on the junction and then be unreachable. Also, CurbApproach is ignored for a junction because, as a point, it has no concept of directionality or sides. Unless you have a specific reason you need to locate on junctions, you would be better off adjusting the locate settings to turn off locating on junction sources.
... View more
02-07-2024
09:26 AM
|
1
|
6
|
655
|
POST
|
Can you share the bad GTFS dataset with me? Off the top of my head, I can't think what would cause this problem, but I'd be interested to see it. I'm always curious about new ways people find to break GTFS data (to make sure my tools can handle it).
... View more
02-06-2024
08:51 AM
|
0
|
0
|
302
|
POST
|
This type of behavior is usually a symptom of some kind of network dataset configuration issue. OSM data usually has long street features that have vertices at intersections instead of endpoints, so you need to use Any Vertex connectivity instead of End Point connectivity. Otherwise, you'll have a lot of situations where you can't make turns. This could cause some weirdness in terms of what roads are covered by the Service Area. All about connectivity: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/understanding-connectivity.htm Another common problem is if the cost attribute is incorrect. If you see the whole network being covered or routes erratically squiggling through streets in a nonsensical manner, it could be that the impedance of all the edges is 0. In that case, the solver has nothing to optimize, because it doesn't cost anything to travel anywhere. Check the evaluator configuration for your streets. All about cost attributes: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/cost-attributes.htm
... View more
02-06-2024
06:45 AM
|
1
|
0
|
320
|
POST
|
Barriers is not the correct way to model this, since those are meant to model temporary obstructions. It sounds like what you want is to create restriction attributes modeling bridge weight limits, cattle grids, etc. and then some travel modes modeling different vehicle types that can and can't use those features. If you haven't done this one already, this is the most relevant tutorial for you to do: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/how-to-create-a-usable-network-dataset.htm Relevant conceptual documentation: Restriction attributes: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/restriction-attributes.htm Travel modes: https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/travel-modes.htm
... View more
01-08-2024
09:27 AM
|
0
|
0
|
277
|
Title | Kudos | Posted |
---|---|---|
1 | 3 weeks ago | |
1 | 2 weeks ago | |
1 | 05-28-2024 07:39 AM | |
1 | 3 weeks ago | |
1 | 3 weeks ago |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|