Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Python Script to creat service areas and compare their coverage

$
0
0
Hello Members,

am stuck on my code for service area analysis. I have a .shp of hospital locations that have been geocoded, a networked dataset that I built and a county layer for one state. The problem is, I would like to get a python script that can run the service area tool and calculate three diffrent sets of service areas around the hospitals and after that, compare the coverages of the three diffrent service area rings in terms of the number of counties covered.
Up to date, I built a model in model builder to draw the service areas and I exported it to python, but I cannot get the script to do all the things I need it to do, and I have gone through many of the scripts on service areas but it doesnt seem to do what i want. Probably I am missing many things. I am new in programming and I am just stuck. I would appreciate an help, to get me going.
I have attached a copy of the coding and also a screen pic of the model builder and the output i have currently. Thanks for helping.
Attached Thumbnails
Click image for larger version

Name:	Model_Service _areas.jpg‎
Views:	N/A
Size:	42.5 KB
ID:	29192   Click image for larger version

Name:	Screenshot 2013-11-18 22.04.38.jpg‎
Views:	N/A
Size:	187.1 KB
ID:	29193  
Attached Files

Viewing all articles
Browse latest Browse all 2485

Trending Articles