ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

MergeAggregate

Disponible con licencia de Production Mapping.

  • Resumen
  • Debate
  • Sintaxis
  • Muestra de código

Resumen

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

Debate

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.

Sintaxis

MergeAggregate (polygon_feature_layer, distance, field)
ParámetroExplicaciónTipo de datos
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

Muestra de código

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)

Temas relacionados

  • Introduction to arcpyproduction.generalization
  • MergeDissolve

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal