Generate Target Layer (Business Analyst)

Available with Business Analyst license.

Summary

Creates a layer that identifies geographies that contain selected segments and geographies that do not contain selected segments.

Usage

  • If the Boundary Layer parameter is not specified, the Extent environment will be used.

  • Targets are a subclassification of a Target Group parameter value, for example, Core and Development targets. A target can contain one or more segments.

Parameters

LabelExplanationData Type
Geography Level

The geography level that will be used to define the target layer.

String
Segmentation Base

The segmentation base for the profile being created. The available options are provided by the segmentation dataset in use.

String
Output Feature Class

The output feature class for the target layer.

Feature Class
Target Input Type

Specifies the target input type.

  • Use Target GroupA target group will be used as the input type.
  • Select SegmentsSegments will be used as the input type. One or more segments can compose a target.
String
Target Group
(Optional)

The target group, if the dataset supports target groups.

File
Target
(Optional)

A target from the Target Group parameter value.

String
Segments
(Optional)

The segments from the provided dataset.

String
Boundary Layer
(Optional)

The boundary that will determine the layer extent.

Feature Layer

arcpy.ba.GenerateTargetLayer(geography_level, segmentation_base, out_feature_class, input_type, {target_group}, {target}, {segments}, {boundary_layer})
NameExplanationData Type
geography_level

The geography level that will be used to define the target layer.

String
segmentation_base

The segmentation base for the profile being created. The available options are provided by the segmentation dataset in use.

String
out_feature_class

The output feature class for the target layer.

Feature Class
input_type

Specifies the target input type.

  • USE_TARGET_GROUPA target group will be used as the input type.
  • SELECT_SEGMENTSSegments will be used as the input type. One or more segments can compose a target.
String
target_group
(Optional)

The target group, if the dataset supports target groups.

File
target
(Optional)

A target from the target_group parameter value.

String
segments
[segments,...]
(Optional)

The segments from the provided dataset.

String
boundary_layer
(Optional)

The boundary that will determine the layer extent.

Feature Layer

Code sample

GenerateTargetLayer example (Python window)

The following Python window script demonstrates how to use the GenerateTargetLayer function.

import arcpy
arcpy.ba.GenerateTargetLayer("US.ZIP5","Total Adult Population", r"C:\Users\MyProject\MyProject.gdb\GenerateTargetLayer_PACIFICHEIGHTS", "SELECT_SEGMENTS", None, '', "2C", "proposed_site")

Licensing information

  • Basic: Requires Business Analyst
  • Standard: Requires Business Analyst
  • Advanced: Requires Business Analyst

Related topics