Create Labels (Coverage)

License Level:BasicStandardAdvanced

Summary

Creates label points for polygons that have no labels and assigns each a User-ID.

Learn more about how Create Labels works

Illustration

Create Labels illustration

Usage

Syntax

CreateLabels_arc (in_cover, {id_base})
ParameterExplanationData Type
in_cover

The coverage to which label points are to be added.

Coverage
id_base
(Optional)

The minimum User-ID value to be assigned to new label points.

The specified value will be the User-ID for the first polygon encountered that has no label point. User-IDs are then incremented by one for each subsequent polygon having no label point. Specifying an ID Base of zero will create new labels for all polygons, where each User-ID will equal the polygon's internal number minus one. This is the default value.

Long

Code Sample

CreateLabels example (stand-alone script)

The following stand-alone script demonstrates how to create labels in a polygon coverage.

# Name: CreateLabels_Example.py
# Description: Creates labels in a polygon coverage
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "texas"
idBase = 0

# Execute CreateLabels
arcpy.CreateLabels_arc(inCover, idBase)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed
3/3/2014