获得 Business Analyst 许可后可用。
描述
Imports stores that are in a shapefile format (already geocoded) and identifies them as stores for further analysis.
使用方法
The existing store layer must be a point feature class.
语法
arcpy.ba.SetupStoreByExistingData(InputFeatureLayer, NameField, StoreIDField, WayToSpecifyStoreIDField, CreateNewFeatureClass, OutputFeatureClass, {UsePictureSymbol}, {ImagePath}, {PictureSymbolSize})
参数 | 说明 | 数据类型 |
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.
| Boolean |
CreateNewFeatureClass | Generates a new feature class based on the existing layer or uses the existing layer.
| Boolean |
OutputFeatureClass | The feature class that will contain the store points. | Feature Class |
UsePictureSymbol (可选) | Inserts custom store symbology into point feature class.
| Boolean |
ImagePath (可选) | The file location containing the custom store symbology. | File |
PictureSymbolSize (可选) | Set the symbol size by points. | Long |
代码示例
SetupStoreByExistingData example (stand-alone script)
# Name: SetupStoreByExistingData.py
# Description: Creates a customer layer using an existing point layer.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
try:
# Acquire extension license
arcpy.CheckOutExtension("Business")
# Defines the parameters for the Setup Store Using Existing Data tool
InputFeatureLayer = "C:/temp/sf_stores.shp"
NameField = "NAME"
StoreIDField = "STORE_ID"
# Sets up a new store layer based on an existing layer
arcpy.SetupStoreByExistingData_ba(InputFeatureLayer, NameField, StoreIDField)
# Release extension license
arcpy.CheckInExtension("Business")
环境
此工具不使用任何地理处理环境。
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst