# Name: MakeODCostMatrixAnalysisLayer_Workflow2.py
# Description: Find the travel time to the closest hospital from each census
# tract and join the travel time and hospital name to the input
# tracts.
# Requirements: Network Analyst Extension
# Import system modules
import arcpy
from arcpy import env
import datetime
import os
try:
# Check out Network Analyst license if available. Fail if the Network Analyst license is not available.
if arcpy.CheckExtension("network") == "Available":
arcpy.CheckOutExtension("network")
else:
raise arcpy.ExecuteError("Network Analyst Extension license is not available.")
# poinamefile=" D:\\research\\4-基础设施可持续发展-Zack合作\\0-处理过程\可达性结果\RESULT\\ "
# poifiles=os.listdir(poinamefile)
# Set environment settings
output_dir = "D:\\research\\4-基础设施可持续发展-Zack合作\\0-处理过程"
# The NA layer's data will be saved to the workspace specified here
env.workspace = os.path.join(output_dir, "Acc1117night.gdb")
env.overwriteOutput = True
# Set inputs and outp
使用arcpy批量计算路网可达性(网路分析方法)
最新推荐文章于 2024-03-05 11:33:07 发布