Setup Store Using Existing Data (Business Analyst)

概要

使用法

構文

SetupStoreByExistingData_ba (InputFeatureLayer, NameField, StoreIDField, WayToSpecifyStoreIDField, CreateNewFeatureClass, OutputFeatureClass)
パラメータ説明データ タイプ
InputFeatureLayer

The existing layer that contains your stores.

Feature Layer
NameField

Selects a field to be used to identify the store name.

Field
StoreIDField

The name used to identify the store ID.

String
WayToSpecifyStoreIDField

Selects an existing store ID field or creates a new field.

  • USE_EXISTINGUses the existing Store ID Field. This is the default.
  • CREATE_NEWCreates a new store ID field.
Boolean
CreateNewFeatureClass

Generates a new feature class based on the existing layer or uses the existing layer.

  • TrueCreates a new feature class.
  • FalseDoes not create a new feature class. The original layer will be used. This is the default
Boolean
OutputFeatureClass

The feature class that will contain the store points.

Feature Class

コード サンプル

SetupStoreByExistingData Example (Stand-alone Script)
# Name: SetupStoreByExistingData.py
# Description: Creates a customer layer using an existing point layer. 
# Author: ESRI

# Import system modules 
 
import arcpy

arcpy.ImportToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")

try:
  # Acquire extension license
  arcpy.CheckOutExtension("Business")

  # Defines the parameters for the Setup Store Using Existing Data tool
  StorePath = "C:/temp/sf_stores.shp"
  StoreName = "NAME"
  StoreID = "STORE_ID"

  # Sets up a new store layer based on an existing layer
  arcpy.SetupStoreByExistingData_ba(StorePath, StoreName, StoreID)

# Release extension license
  arcpy.CheckInExtension("Business")

     
except:
  print arcpy.GetMessages(2)

環境

このツールは、ジオプロセシング環境では使用できません

関連項目

ライセンス情報

ArcView: 要 Business Analyst
ArcEditor: 要 Business Analyst
ArcInfo: 要 Business Analyst

10/4/2010