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

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

Extend Polygon Sides

获得 Production Mapping 许可后可用。

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

描述

Extends the lengths and widths of polygon features until they meet a specified minimum value.

插图

Extend Polygon Side example

使用方法

    警告:

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

  • A warning is raised if the input features are not in a projected coordinate system. This tool relies on linear distance units, which will create unexpected results in an unprojected coordinate system. It is strongly suggested that you run this tool on data in a projected coordinate system to ensure valid results. An error is raised and the tool will not process if the coordinate system is missing or unknown.

  • 此工具对注册为版本的数据不适用。

  • It is recommended that this tool only be used on regular, rectangular-shaped polygons, such as buildings.

  • Features with a longer side smaller than the value specified in the Minimum_Length (Minimum Length) parameter will have the longer side extended until it meets the minimum value.

  • Features with a shorter side smaller than the value specified in the Minimum_Width (Minimum Width) parameter will have the shorter side extended until it meets the minimum value.

  • At a minimum, the Minimum_Length (Minimum Length) or Minimum_Width (Minimum Width) parameter must have a value defined since the default is 0. If a value is not defined, the input polygon feature will not be processed.

  • This tool cannot be run during an edit session.

语法

arcpy.production.ExtendPolygonSides(Input_Polygon_Features, {Minimum_Length}, {Minimum_Width})
参数说明数据类型
Input_Polygon_Features

The polygon features that will have their lengths and widths extended.

Feature Layer
Minimum_Length
(可选)

The minimum size of the long side of the polygon. The default value is 0, meaning that the feature's length will not be extended.

Linear unit
Minimum_Width
(可选)

The minimum size of the short side of the polygon. The default value is 0, meaning that the feature's width will not be extended.

Linear unit

代码示例

ExtendPolygonSides example (stand-alone script)

The following stand-alone sample script demonstrates how to use ExtendPolygonSides.

# Name: ExtendPolygonSides_Example.py
# Description: Extends the sides of a building footprint until it is 150 feet
#   long and 100 feet wide
# Author: Esri
# Date: February 2014

# Import arcpy module
import arcpy

# Check out Production Mapping license
arcpy.CheckOutExtension("Foundation")

# set environment
arcpy.env.workspace="c:/data/LocalGovernment.gdb"

# Define variables
inFeatures="ReferenceData/BuildingFootprint"
where="FULLADDRESS='332 FORT HILL DR'"
minLength="150 feet"
minWidth="100 feet"

# make a feature layer
inFeatureLyr=arcpy.MakeFeatureLayer_management(inFeatures,"FacilityLayer",where)

# execute the ExtendPolygonSides function - best use against more rectangular features like buildings
arcpy.ExtendPolygonSides_production(inFeatureLyr,minLength,minWidth)

环境

  • 当前工作空间
  • 临时工作空间

许可信息

  • Basic: 否
  • Standard: 否
  • Advanced: 需要 Production Mapping

相关主题

  • An overview of the Generalization toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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