使用Arcpy批量进行可达性分析

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值