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

Production Clip

Available with Production Mapping license.

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

This tool takes a geodatabase and clip geometry, as well as any clip override representations, present on the features.

Illustration

Production Clip diagram

Usage

  • Everything will be clipped in the geodatabase that can be clipped. To get the best results, copy only the necessary data to another database before running the tool.

  • Clip Features must be polygons.

  • This tool works directly on the Input Geodatabase.

Syntax

arcpy.production.ProductionClip(input_geodatabase, clip_features)
ParameterExplanationData Type
input_geodatabase

The geodatabase that contains the features to be clipped.

Workspace
clip_features

The features used to clip the Input Geodatabase.

Feature Layer

Code sample

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

# Name: ProductionClip_Example.py
# Description: Clips the underlying geometry as well as override geometry if applicable.  The tool clips an entire geodatabase.

# Import system modules
import arcpy

# Check out extension
arcpy.CheckOutExtension("Foundation")

# Define variables
input_geodatabase = r"C:\data\Edit_Sample.gdb"
clip_features = arcpy.MakeFeatureLayer_management(r"C:\data\Edit_Sample.gdb\10k_AOIs", "AOIs")
arcpy.SelectLayerByAttribute_management("AOIs", "NEW_SELECTION", "SheetID = 2104")

# Execute Production Clip
# All feature classes will be clipped in the geodatabase using the selected clip features
arcpy.ProductionClip_production(input_geodatabase, clip_features)

# Check in Production Mapping license
arcpy.CheckInExtension("Foundation")

Environments

  • Current Workspace

Licensing information

  • Basic: No
  • Standard: Requires Production Mapping
  • Advanced: Requires Production Mapping

Related topics

  • An overview of the Editing toolset

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