空の顧客レイヤを作成(Create An Empty Customer Layer) (Business Analyst)

ライセンス レベル:BasicStandardAdvanced

サマリ

空のポイント フィーチャクラス(顧客レイヤ)を新規に作成します。新規レイヤに作成するフィールドを定義できます。

使用法

構文

CreateEmptyCustomerLayer_ba (OutputFeatureClass, {FldsCollection}, {NameField}, {LinkField})
パラメータ説明データ タイプ
OutputFeatureClass

顧客フィーチャが含まれるフィーチャクラス。

Feature Class
FldsCollection
(オプション)

出力フィーチャクラスに追加するフィールド。

String
NameField
(オプション)

顧客名を識別するフィールド。

String
LinkField
(オプション)

顧客ファイルと店舗ファイルをリンクするユニークな ID。

String

コードのサンプル

CreateEmptyCustomerLayer(空の顧客レイヤを作成)の例(スタンドアロン スクリプト)
# Name: CreateEmptyCustomerLayer.py
# Description: Creates a new empty customer layer.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
 
# Defines the parameters for the Create an Empty Customer Layer tool
  OutPath = "C:/temp/New_Customers.shp"
  StoreId = "ID"
  Name= "Address"
  FldCol = "Name:ID|Alias:ID|Type:esriFieldTypeSmallInteger|Precision:1;Name:Address|Alias:Address|Type:esriFieldTypeString|Precision:40"
 
# Creates a new feature class (Customer Layer) with empty attribute fields
  arcpy.CreateEmptyCustomerLayer_ba(OutPath, FldCol, Name, StoreId)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

環境

このツールはジオプロセシング環境を使用していません

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: 次のものが必要 Business Analyst
ArcGIS for Desktop Standard: 次のものが必要 Business Analyst
ArcGIS for Desktop Advanced: 次のものが必要 Business Analyst
5/20/2014