Hi,
I am building a toolbox using Python 3 in ArcGIS Pro 2.4. It involves a series of network analysis processes, including closest facility and service area. I am using arcpy.na.MakeClosestFacilityAnalysisLayer and arcpy.na.MakeServiceAreaAnalysisLayer. I am able to create them no problem, but I am having lots of trouble with manipulating them, including:
Anyone have any suggestion on how to fix this and make it work correctly? I want to be able to create it in a specified location, name it something that is meaningful and then delete the file when it is done.
Thanks!
Andrew
Solved! Go to Solution.
Would it be possible for you to share your facilities with me so I can test your script? I can't tell from looking at it what's going wrong, but I'd like to get to the bottom of it. I don't need your network dataset.
Hi Melinda,
Here is the file. I have zipped it into Google Drive as a shapefile. Let me know you if you have any issue!
Thanks so much.
Hi Andrew. Your script works fine with the addition of this line:
ServArea.defaultImpedanceCutoffs = [1]
Seems like you shouldn't need this because all your facilities have explicitly-set break values in the Breaks field, but for some reason it's getting confused. I'll log a bug on our end to address this item of confusion, but I think if you add this to your code in the part where you're setting the service area properties, you should be good to go.
Thank you so much!