ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

ConvertIntersectingPolygons

Available with Production Mapping license.

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

Converts polygons that intersect one layer into the features that are part of another layer.

Discussion

With this function, you can convert overlapping polygons to features from a secondary feature class. The secondary features are compared to the primary features to determine where they are merged with the primary features. The secondary features that share the largest common boundary with the primary features are merged.

Syntax

ConvertIntersectingPolygons (primary_feature_layer, secondary_feature_layer_list)
ParameterExplanationData Type
primary_feature_layer

The feature layer that is going to be compared to the secondary feature classes.

Layer
secondary_feature_layer_list
[secondary_feature_layer_list,...]

The feature layers that will be compared to the primary feature class. Features that intersect the primary features are converted to it.

Layer

Code sample

ConvertIntersectingPolygons example

This sample converts industrial features to building features when the two intersect.

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/IndustrialA"
inFeatLayer="industrial"
inIntersecting="TopographicMap/BuildingA"

# Create feature layers
inFeatLayer=arcpy.MakeFeatureLayer_management(inFeatures,"industrial")

# Execute the ConvertIntersectingPolygons function
generalization.ConvertIntersectingPolygons(inFeatLayer,[inIntersecting])

Related topics

  • Introduction to arcpyproduction.generalization

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal