ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

Help

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

Split Features

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

摘要

Splits features for any number of polyline or polygon target feature classes using the cutting features and inserts points on the cutting feature.

用法

  • Cutting features must have at least one feature selected.

  • Target features will be divided into multiple features at any point where they intersect the source features.

  • Source features will have new vertices added at every point where they intersect the target features.

语法

SplitFeatures_defense (cutting_features, target_features, use_target_z)
参数说明数据类型
cutting_features

The source features used to split target features at intersection points of the feature class geometries.

Feature Layer
target_features
[target_features,...]

The features that will be divided by the cutting features.

Feature Layer
use_target_z

Determines the source of the z-value from the source or target.

  • USE_TARGET_Z —Uses the z-value from the source or target.
  • DONT_USE_TARGET_Z —Does not use the z-value. This is the default.
Boolean

代码示例

SplitFeatures example (stand-alone script)

This script demonstrates how to use SplitFeatures.

# Name: SplitFeatures_Example.py
# Description: Split road features by AOI polygons
# Requirements: Esri Defense Mapping solution

# Import the Arcpy module
import arcpy

# Check out Defense Mapping extension
arcpy.CheckOutExtension('defense')

# Set up the gp environment
arcpy.env.overwriteOutput = 1
arcpy.env.workspace = r"C:\Data\MGCP_TRD4.gdb"
arcpy.env.scratchWorkspace = r"C:\Data\SplitFeatures.gdb"

# Declare paths to AOI features and polyline features
AOIFeatures = r"C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.2\ReferenceData\MapIndex.mdb\MapIndex\TLM50_Index"
polylineFeautres = r"C:\Data\MGCP_TRD4.gdb\MGCP\RoadL"

# Create feature layers of the AOI
arcpy.management.MakeFeatureLayer(AOIFeatures, "AOIFeatures")

# Select specific AOIs
selection = "NRN = 'E732X57714'"
arcpy.management.SelectLayerByAttribute("AOIFeatures", "NEW_SELECTION", selection)

# Execute Split Features tool
arcpy.defense.SplitFeatures("AOIFeatures", polylineFeautres, "USE_TARGET_Z")

环境

此工具不使用任何地理处理环境

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 需要 Defense Mapping
  • ArcGIS Desktop Advanced: 需要 Defense Mapping

相关主题

  • An overview of the Features toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

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

关于 Esri

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