ArcGIS Desktop

  • Документация
  • Поддержка

  • My Profile
  • Справка
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Картографическая платформа вашей организации

ArcGIS Desktop

Полноценная профессиональная ГИС

ArcGIS Enterprise

ГИС предприятия

ArcGIS for Developers

Инструменты для встраивания приложений с местоположениями

ArcGIS Solutions

Бесплатные шаблоны карт и приложений для отрасли

ArcGIS Marketplace

Получение приложения и данных для вашей организации.

  • Документация
  • Поддержка
Esri
  • Войти
user
  • Мой профиль
  • Выход

Help

  • На главную
  • Начало работы
  • Карта
  • Анализ
  • Управление данными
  • Инструменты
  • Больше...

MergeAggregate

  • Краткая информация
  • Описание
  • Синтаксис
  • Пример кода

Краткая информация

Merges polygon features based on a specified distance and field values.

Описание

This generalization function can be used to aggregate polygon features for purposes such as meeting the minimum size for polygon features for a product specification or for annotating large multipart features. For example, the layer that contains the merged features can be used to annotate a campus composed of several buildings.

Синтаксис

MergeAggregate (polygon_feature_layer, distance, field)
ПараметрОбъяснениеТип данных
polygon_feature_layer

The Layer object that will have features merged.

Layer
distance

The amount of space that can be between the features when they are merged.

Double
field

The field in the Layer object that will be used to determine whether features are merged. If the field values match, the features will be merged if they are within the specified distance.

Field

Пример кода

MergeAggregate example

This example merges building features.

import arcpy
import arcpyproduction
from arcpyproduction import generalization

# set environment
arcpy.env.workspace="c:/Data/Austin.gdb"

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

# Define variables
inFeatures="TopographicMap/BuildingA"
field='Name'
distance='.0003'
where = "GNISid='8000020'"

# Create a feature layer
inFeatLayer=arcpy.MakeFeatureLayer_management(inFeatures,"buildings",where)

# Execute the MergeAggregate function
generalization.MergeAggregate(inFeatLayer,distance,field)

Связанные разделы

  • Introduction to arcpyproduction.generalization
  • MergeDissolve

ArcGIS Desktop

  • На главную
  • Документация
  • Поддержка

ArcGIS Platform

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

Об Esri

  • О нас
  • Карьера
  • Блог сотрудников
  • Конференция пользователей
  • Саммит разработчиков
Esri
Расскажите нам, что вы думаете.
Copyright © 2017 Esri. | Конфиденциальность | Правовая информация