Create Labels (Coverage)


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

Learn more about how Create Labels works


Create Labels illustration



CreateLabels_arc (in_cover, {id_base})
ParameterExplanationData Type

The coverage to which label points are to be added.


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.


Code Sample

CreateLabels example (stand-alone script)

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

# Name:
# Description: Creates labels in a polygon coverage
# Requirements: ArcInfo Workstation
# Author: ESRI

# 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)


Related Topics

Licensing Information

ArcView: No
ArcEditor: No
ArcInfo: Requires ArcInfo Workstation installed

Published 6/8/2010