Create An Empty Store Layer (Business Analyst)

概要

Generates a new empty point feature class (store layer). You can define fields to be created in the new empty layer.

使用法

構文

CreateEmptyStoreLayer_ba (OutputFeatureClass, FldsCollection, {NameField}, {StoreIDField}, {UsePictureSymbol}, {Image Path}, {PictureSymbolSize})
パラメータ説明データ タイプ
OutputFeatureClass

The feature class that will contain the store points.

Feature Class
FldsCollection
[[Field Name, Alias Name, Field Type, Precision],...]

Fields to add to the output feature class.

String
NameField
(オプション)

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

String
StoreIDField
(オプション)

Selects a field to be used as the store ID field.

String
UsePictureSymbol
(オプション)

Inserts custom store symbology into point feature class.

  • TrueInserts custom symbology
  • FalseWill not insert custom symbology
Boolean
Image Path
(オプション)

The file location containing the custom store symbology.

File
PictureSymbolSize
(オプション)

The feature class that will contain the store points.

Long

コード サンプル

CreateEmptyStoreLayer Example (Stand-alone Script)
# Name: CreateEmptyStoreLayer.py
# Description: Creates an empty store layer.
# Author: ESRI

# Import system modules

import arview
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 Create an Empty Store Layer tool
  OutPath = "C:/temp/New_Store.shp"
  Name= "Address"
  StoreId = "ID"
  FldCol = "Name:ID|Alias:|Type:esriFieldTypeSmallInteger|Precision:1|Scale:0;Name:Address|Alias:|Type:esriFieldTypeString|Precision:40|Scale:0"
 
  # Creates a new feature class (Store Layer) with empty attribute fields
  arcpy.CreateEmptyStoreLayer_ba(OutPath, FldCol, Name, StoreId)
 
  # Release extension license 
  arcpy.CheckInExtension("Business")
     
except:
  print arcpy.GetMessages(2)

環境

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

関連項目

ライセンス情報

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

10/4/2010