Aggregate Polygons (Production Mapping)

ライセンス レベル:BasicStandardAdvanced

サマリ

Combines polygons that are smaller than a defined size with other polygons that are within a specified distance of another feature.

Aggregate Polygons functionality

使用法

構文

AggregatePolygons_production (Input_Polygon_Features, Combine_Field, Minimum_Size, Distance, {Combine_features_with_blank_values_to_features_with_values})
パラメータ説明データ タイプ
Input_Polygon_Features

Polygon feature class that contains the features that will be combined. The features in this feature class will be modified.

Feature Layer
Combine_Field

The values in this field will be compared when combining features. If both features have the same value, the features will be combined. If both features have values and the values are different, the features will not be combined. If one feature has a value and the other is blank or empty, the Combine_features_with_blank_values_to_features_with_values parameter will determine if the features will be combined.

Field
Minimum_Size

Features smaller than the specified minimum size will be combined.

Areal unit
Distance

The tolerance that can exist between two features before they are combined.

Features that are separated by less than this distance will be combined.

Linear unit
Combine_features_with_blank_values_to_features_with_values
(オプション)

Indicates whether features will be merged when one feature has a blank or null value in the field designated in the Combine_Field parameter.

  • COMBINE_BLANKFeatures with blank or null values are merged with features that have values.
  • DO_NOT_COMBINE_BLANKFeatures with blank or null values are not merged with other polygon features that have values. This is the default.
Boolean

コードのサンプル

AggregatePolygons example (stand-alone script)

This script merges building features that are within 32 feet of each other and have a GNISid value of 6006.

# Name: AggregatePolygonsExample.py
# Description: Combines polygons that are below a specified size and within a certain
#               distance of another feature
# Author: Esri
# Date: February 2014

import arcpy

# Check out Production Mapping license & set environment
arcpy.CheckOutExtension("Foundation")
arcpy.env.workspace="c:/Data/LocalGovernment.gdb"

# Define variables
inFeatures="ReferenceData/FacilitySite"
inFeatLayer="facilities"
combineField='FCODE'
distance='220 Feet'
where = "SHAPE_Area < 500000"

# Create a feature layer for Aggregate Polygons
arcpy.MakeFeatureLayer_management(inFeatures,inFeatLayer,where)

# Aggregate the polygon features
arcpy.AggregatePolygons_production(inFeatLayer,combineField,distance)

環境

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: ×
ArcGIS for Desktop Standard: 次のものが必要 Production Mapping
ArcGIS for Desktop Advanced: 次のものが必要 Production Mapping
4/26/2014