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

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

增密

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

描述

沿线或多边形要素添加折点。还可将曲线线段(贝塞尔、圆弧和椭圆弧)替换为线段。

插图

The curve is densified into linear segments by either the Offset, Distance, or Angle
The curve is densified into linear segments by either the Offset, Distance, or Angle.

使用方法

    警告:

    此工具会修改输入数据。有关详细信息以及避免数据被意外更改的策略,请参阅不创建输出数据集的工具。

  • 通过距离参数对直线段进行增密。利用距离、最大偏转角或最大偏移偏差参数,通过增密操作对曲线段进行简化。

  • 将逐段进行增密。

  • 每次执行增密时只能选择一种增密方法。

  • 数据的空间参考对于此工具所生成的结果来说非常重要。应该在合适的坐标系中对数据进行增密,以保持要素的正确形状。

  • 对于原始要素的每个折点(包括起点和终点),在生成的要素中将出现重合折点。

  • 使用最大偏移偏差进行增密时,如果输入几何中包含圆弧,则将强制使用偏移的上限值,从而使输出中两个连续线段之间的角度不超过十度。如果使用最大偏转角进行增密,则该角度可超过十度。

语法

arcpy.edit.Densify(in_features, {densification_method}, {distance}, {max_deviation}, {max_angle})
参数说明数据类型
in_features

要进行增密的面或线要素类。

Feature Layer
densification_method
(可选)

用来处理要素增密的方法。

  • DISTANCE —此工具将对曲线应用“距离”方法,就像对直线一样。这是默认设置。
  • OFFSET —该工具会将最大偏移偏差参数(Python 中的 max_deviation)的值应用到曲线。
  • ANGLE —该工具会将最大偏转角参数(Python 中的 max_angle)的值应用到曲线。
String
distance
(可选)

折点间的最大线性距离。此距离始终应用于线段,并用来简化曲线。默认值是关于数据的 xy 容差的函数。

Linear unit
max_deviation
(可选)

输出线段与原始线段之间的最大距离。此参数仅影响曲线。默认值是关于数据的 xy 容差的函数。

Linear unit
max_angle
(可选)

输出几何与输入几何之间的最大角度。有效范围从 0 到 90。默认值为 10。此参数仅影响曲线。

Double

代码示例

Densify 示例 1(Python 窗口)

以下 Python 窗口脚本演示了如何在即时模式下使用“增密”函数。

import arcpy
arcpy.Densify_edit("C:/data.gdb/lines", "ANGLE","", "", "0.75")
Densify 示例 2(独立脚本)

以下独立脚本显示的是将“增密”函数与“捕捉”编辑工具结合使用的工作流。

# Name: Snap.py
# Description: Snap climate regions boundary to vegetation layer
#              boundary to ensure common boundary is coincident


# import system modules 
#
import arcpy

# Set environment settings
#
arcpy.env.workspace = "C:/data"

# Make backup copy of climate regions feature class, 
# since modification with the Editing tools below is permanent
#
climateBackup = "backups/climate.shp"
arcpy.CopyFeatures_management('climate.shp', climateBackup)

# Densify climate regions feature class to make sure there are enough
#vertices to match detail of vegetation layer when layers are snapped
#
arcpy.Densify_edit('climate.shp', "DISTANCE", "10 Feet") 

# Snap climate regions feature class to  vegetation layer vertices and edge
# first, snap climate region vertices to the nearest vegetation vertex within 30 Feet
# second, snap climate region vertices to the nearest vegetation edge within 20 Feet
#
snapEnv1 = ["Habitat_Analysis.gdb/vegtype", "VERTEX", "30 Feet"]    
snapEnv2 = ["Habitat_Analysis.gdb/vegtype", "EDGE",   "20 Feet"]       
arcpy.Snap_edit('climate.shp', [snapEnv1, snapEnv2])

环境

  • 自动提交
  • 当前工作空间

许可信息

  • Basic: 否
  • Standard: 是
  • Advanced: 是

相关主题

  • “编辑”工具箱概述

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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