融合路径事件 (线性参考)
摘要
将冗余信息从事件表中移除,或将包含多个描述性属性的事件表分解为单独的表。
用法
-
输入表可以是 ArcGIS 支持的任何类型的表。输出表可以是 dBASE 文件或地理数据库表。
-
如果输入事件没有 ObjectID 字段,在使用此工具之前先使用创建查询表添加虚拟 ObjectID 字段。
-
路径标识符字段上的属性索引可加快动态分段过程的速度。如果要为动态分段使用输出事件表,建议您选择创建属性索引。
-
使用创建路径事件图层工具或使用 ArcMap 中的“显示路径事件”命令可在 ArcMap 中显示输出表。
语法
DissolveRouteEvents_lr (in_events, in_event_properties, dissolve_field, out_table, out_event_properties, {dissolve_type}, {build_index})
参数 | 说明 | 数据类型 |
in_events |
行将被聚合的表。 | Table View |
in_event_properties |
输入事件表中由路径位置字段和事件类型组成的参数。
| Route Measure Event Properties |
dissolve_field [dissolve_field,...] |
用于聚合行的字段。 | Field |
out_table |
要创建的表。 | Table |
out_event_properties |
由要写入输出事件表的路径位置字段和事件类型组成的参数。
| Route Measure Event Properties |
dissolve_type (可选) |
指定是串联还是融合输入事件。
| Boolean |
build_index (可选) |
指定是否为写入输出事件表的路径标识符字段创建属性索引。
| Boolean |
代码示例
DissolveRouteEvents 示例(Python 窗口)
import arcpy from arcpy import env env.workspace = "C:/Data" arcpy.DissolveRouteEvents_lr("pavecond.dbf", "rkey LINE fmp tmp", "lanes", "pave_dissolve1.dbf", "rkey LINE fmp tmp")
DissolveRouteEvents 示例 2(独立 Python 脚本)
以下 Python 脚本演示了如何在独立 Python 脚本中使用 DissolveRouteEvents 函数。
# Name: DissolveRouteEvents_Example2.py # Description: Dissolve line events based on one field (input table is dBASE). # Author: ESRI # Import system modules import arcpy from arcpy import env # Set workspace env.workspace = "D:/Data/pitt_county" # Set local variables in_tbl = "pavecond.dbf" in_props = "rkey LINE fmp tmp" # re-used as out event properties flds = "lanes" out_tbl = "pave_dissolve1.dbf" # Execute DissolveRouteEvents arcpy.DissolveRouteEvents_lr(in_tbl, in_props, flds, out_tbl, in_props)
DissolveRouteEvents 示例 3(独立 Python 脚本)
以下 Python 脚本演示了如何在独立 Python 脚本中使用 DissolveRouteEvents 函数。
# Name: DissolveRouteEvents_Example3.py # Description: Concatenate line events based on two fields (input table is file geodatabase). # Author: ESRI # Import system modules import arcpy from arcpy import env # Set workspace env.workspace = "C:/Data/pitt.gdb" # Set local variables in_tbl = "pavecond" in_props = "rkey LINE fmp tmp" # re-used as out event properties flds = "lanes; curb" out_tbl = "pave_dissolve2" # Execute DissolveRouteEvents arcpy.DissolveRouteEvents_lr(in_tbl, in_props, flds, out_tbl, in_props, "CONCATENATE")
DissolveRouteEvents 示例 4(独立 Python 脚本)
以下 Python 脚本演示了如何在独立 Python 脚本中将 DissolveRouteEvents 函数与个人地理数据库数据结合使用。
# Name: DissolveRouteEvents_Example4.py # Description: Concatenate line events based on two fields (input table is personal geodatabase). # Author: ESRI # Import system modules import arcpy from arcpy import env # Set workspace env.workspace = "C:/Data/pitt.mdb" # Set local variables in_tbl = "pavecond" in_props = "rkey LINE fmp tmp" # re-used as out event properties flds = "lanes; curb" out_tbl = "pave_dissolve2" # Execute DissolveRouteEvents arcpy.DissolveRouteEvents_lr(in_tbl, in_props, flds, out_tbl, in_props, "CONCATENATE")
DissolveRouteEvents 示例 5(独立 Python 脚本)
以下 Python 脚本演示了如何在独立 Python 脚本中将 DissolveRouteEvents 函数与 SDE 数据结合使用。
# Name: DissolveRouteEvents_Example5.py # Description: Dissolve line events based on two fields (input table is enterprise geodatabase). # Author: ESRI # Import system modules import arcpy from arcpy import env # Set workspace env.workspace = "Database Connections/Connection to Jerry.sde" # Set local variables in_tbl = gp.QualifyTableName("pavecond", wkspc) in_props = "rkey LINE fmp tmp" flds = "lanes; curb" out_tbl = "pave_dissolve3" out_props = "rid LINE f_meas t_meas" # Execute DissolveRouteEvents arcpy.DissolveRouteEvents_lr(in_tbl, in_props, flds, out_tbl, out_props, "#", "NO_INDEX")
相关主题
7/10/2012