Create An Empty Store Layer (Business Analyst)

Уровень лицензии:BasicStandardAdvanced

Краткая информация

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

Параметры среды

Этот инструмент не использует параметры среды геообработки

Связанные темы

Информация о лицензировании

ArcGIS for Desktop Basic: Требует Business Analyst
ArcGIS for Desktop Standard: Требует Business Analyst
ArcGIS for Desktop Advanced: Требует Business Analyst
4/27/2014