Setup Store Using Existing Data (Business Analyst)
Zusammenfassung
Imports stores that are in a shapefile format (already geocoded) and identifies them as stores for further analysis.
Verwendung
-
The existing store layer must be a point feature class.
Syntax
SetupStoreByExistingData_ba (InputFeatureLayer, NameField, StoreIDField, WayToSpecifyStoreIDField, CreateNewFeatureClass, OutputFeatureClass)
Parameter | Erläuterung | Datentyp |
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 |
Codebeispiel
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 (x86)\ArcGIS\Desktop10.2\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
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)
Umgebung
Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.
Verwandte Themen
Lizenzierungsinformationen
ArcGIS for Desktop Basic: Erfordert Business Analyst
ArcGIS for Desktop Standard: Erfordert Business Analyst
ArcGIS for Desktop Advanced: Erfordert Business Analyst
4/26/2014