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

Hydro Centerline

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

摘要

Converts hydrographic polygon features into individual polyline centerlines. This tool is used by the Esri Defense Mapping solution to create polyline hydrographic features at scales where a polygon feature is inappropriate or not useful. It produces an approximate centerline from input polygons. This centerline serves as a polyline representation of the original polygon feature.

旧版本:

This tool has been replaced by the Production Centerline tool and will be deprecated in the next release.

用法

  • This tool creates one polyline centerline for each input hydro area polygon.

  • This tool will copy attribute values from Hydro Area Input Features to Hydro Polyline Output Features if both share identical field names and definitions.

  • Hydro Area Input Features and Hydro Polyline Output Features must have the same coordinate system.

语法

EGBHydroCenterline(in_polygon_features, in_polyline_features)
参数说明数据类型
in_polygon_features

The polygon features from which centerlines will be generated.

Feature Layer
in_polyline_features

A preexisting polyline feature class.

Feature Layer

代码示例

HydroCenterline example (stand-alone script)

The following stand-alone script demonstrates how to use the HydroCenterline tool.

# HydroCenterline_Example.py
# Description:
# Requirements: Esri Defense Mapping solution, 3D Analyst extension, Spatial Analyst extension
 
# Import arcpy module
import arcpy

# Check out a DefenseMapping extension license
arcpy.CheckOutExtension("3d")
arcpy.CheckOutExtension("foundation")
arcpy.CheckOutExtension("defense")

arcpy.env.workspace = "c:\\data\\HydroTest.gdb"

inPolyFeatures = "HydrographySrf"
inPolylineFeatures = "HydrographyCrv"

# Create 2 feature layers for processing
arcpy.MakeFeatureLayer_management(inPolyFeatures,'inPolyFeats')
arcpy.MakeFeatureLayer_management(inPolylineFeatures,'inPolyLineFeats')

# execute the EGB Hydro Centerline tool
arcpy.EGBHydroCenterline_defense('inPolyFeats', 'inPolyLineFeats')
print arcpy.GetMessages()

# Check in the extensions
arcpy.CheckInExtension("3d")
arcpy.CheckInExtension("foundation")
arcpy.CheckInExtension("defense")

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 需要 Defense Mapping and Spatial Analyst and 3D Analyst
  • ArcGIS Desktop Advanced: 需要 Defense Mapping and Spatial Analyst and 3D Analyst

相关主题

  • An overview of the Generalization toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

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