ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Generate Events

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

Re-creates shapes for event features registered with an LRS Network. If the event has derived network route and measure fields configured, the tool will update those fields when executed.

用法

  • Input the event whose features need to be regenerated based on the route and measure of the event.

语法

GenerateEvents(in_event_layer)
参数说明数据类型
in_event_layer

The event for which shapes will be regenerated.

Feature Layer

派生输出

名称说明数据类型
out_event_layers

代码示例

GenerateEvents example 1 (Python window)

The following Python window script demonstrates how to use GenerateEvents in immediate mode.

# tool variables 
in_event_layer = "Event"

# set current workspace 
arcpy.env.workspace = "C:/data/Outputs.gdb"

# execute the tool 
arcpy.GenerateEvents_locref(in_event_layer)
GenerateEvents example 2 (stand-alone script)

The following Python script demonstrates how to use GenerateEvents in a stand-alone Python script.

# Name: GenerateEvents_standalone_ex.py 
# Description: Re-creates shapes for event features registered with a LRS Network 

# Import arcpy module 
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")

# Local variables 
# input Network layer 
in_event_layer = "C:\\RoadsAndHighways\Data\RH_DOT.gdb\SpeedLimit"

# Process: Generate Events
arcpy.GenerateEvents_locref(in_event_layer)

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 需要 Roads and Highways
  • ArcGIS Desktop Standard: 需要 Roads and Highways
  • ArcGIS Desktop Advanced: 需要 Roads and Highways

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2020 Esri. | 隐私政策 | 法律声明