ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Detect NonMonotonic Routes

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Checks routes for nonmonotonic calibration of the m-values on vertices. Nonmonotonic calibration occurs when a route does not contain either strictly increasing or strictly decreasing m-values on its vertices.

使用方法

  • If two consecutive vertices have the same m-value, it is considered nonmonotonic calibration.

  • If there is no polyline between two consecutive vertices with the same m-value, the tool will output a record without a shape.

  • The output feature class contains the paths between nonmonotonic vertices.

  • The output feature class contains the following fields: NetworkName, RouteID, FromMeasure, ToMeasure, FromDate, and ToDate.

语法

arcpy.locref.DetectNonMonotonicRoutes(in_network, out_feature, in_monotonicity_type, in_from_date_field, in_to_date_field, in_route_id_field)
参数说明数据类型
in_network

The network containing the routes to be validated.

Feature Layer
out_feature

The feature class containing polylines for nonmonotonic paths.

Feature Class
in_monotonicity_type

Specifies the type of monotonicity that will be checked on the routes.

  • ANY —The output will contain polylines for any m-values that are neither strictly increasing nor strictly decreasing.
  • STRICTLY_INCREASING —The output will contain polylines for any m-values that are not strictly increasing.
  • STRICTLY_DECREASING —The output will contain polylines for any m-values that are not strictly decreasing.
String
in_from_date_field

The attribute or field of the input Network Layer containing the From Date of the route.

Field
in_to_date_field

The attribute or field of the input Network Layer containing the To Date of the route.

Field
in_route_id_field

The attribute or field of the input Network Layer containing the Route ID field.

Field

代码示例

DetectNonMonotonicRoutes example (Python window)

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

# tool variables
in_network = "MileMarker"
out_features = "NonMonotonic_Output"
mono_type = "STRICTLY_DECREASING"
fromdate_field = "FROM_DATE"
todate_field = "TO_DATE"
routeid_field = "ROUTE_ID"

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

# execute the tool
arcpy.DetectNonMonotonicRoutes_locref(in_network, out_features, mono_type, fromdate_field, todate_field, routeid_field)
DetectNonMonotonicRoutes example (stand-alone script)

The following Python script demonstrates how to use DetectNonMonotonicRoutes as a stand-alone Python script.

# Name: DetectNon-MonotonicRoutes.py
# Description: Convert Roads and Highways Network Layer to Feature Layer and Detect Non-Monotonic Routes in a file geodatabase

# Import arcpy module
import arcpy

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

# Local variables
network = "C:/Data/NY_Data.gdb/LRSN_MilePoint"
nonMonotonicOutput = "C:/Data/Outputs.gdb/NonMonotonic_Output"

# Process: Detect Non-monotonic Routes
arcpy.env.overwriteOutput = 1
arcpy.DetectNonMonotonicRoutes_locref(network, nonMonotonicOutput, "Any", "From_Date", "To_Date", "Route_Id")

环境

  • 当前工作空间

许可信息

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

相关主题

  • An overview of the Location Referencing toolbox

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

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