# 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
使用Arcpy批量进行可达性分析
最新推荐文章于 2024-06-24 16:43:51 发布
本文介绍如何利用Python的Arcpy模块批量处理地理信息系统(GIS)数据,进行可达性分析。通过Arcpy,我们可以高效地计算多个起点到各个目的地的路径,为城市规划、交通研究等领域提供支持。
摘要由CSDN通过智能技术生成