Setup Store Using Tabular Data (Business Analyst)

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

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

Allows you to turn tabular data (.dbf, .txt, or RDBMS format) into store points.

Learn more about how Setup Store Using Tabular Data works

Использование

Синтаксис

SetupStoreByTable_ba (Table, Locator, MatchFields, NameField, StoreIDField, OutputFeatureClass, {WayToSpecifyStoreIDField}, {UsePictureSymbol}, {ImagePath}, {PictureSymbolSize})
ПараметрОбъяснениеТип данных
Table

The tabular data (.dbf, .txt, or RDBMS format) that will be used to geocode your stores.

Table View
Locator

The address locator service to use to geocode addresses.

Address Locator
MatchFields

Input fields for geocoding addresses.

Field Info
NameField

The field containing the store name.

Field
StoreIDField

The name used to identify the store ID.

String
OutputFeatureClass

The feature class that will contain the store points.

Feature Class
WayToSpecifyStoreIDField
(дополнительно)

Selects an existing store ID field or creates a new field.

  • USE_EXISTINGUses an existing store ID field.
  • CREATE_NEWCreates a new store ID field. This is the default.
Boolean
UsePictureSymbol
(дополнительно)

Inserts custom store symbology into point feature class.

  • TrueInserts custom symbology.
  • FalseWill not insert custom symbology. This is the default.
Boolean
ImagePath
(дополнительно)

The file location containing the custom store symbology.

File
PictureSymbolSize
(дополнительно)

Set the symbol size by points.

Long

Пример кода

SetupStoreByTable Example (Stand-alone Script)
# Name: SetupStoreByTable.py
# Description: Geocodes San Francisco customers using tabular data. 
# 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 Tabular Data tool
  Input = "C:/ArcGIS/Business Analyst/US_2013/Datasets/Tutorial/sf_stores.dbf"
  OutFC= "C:/temp/sf_store.shp"
  Locator = "C:/ArcGIS/Business Analyst/US_2013/Data/Geocoding Data/USA Geocoding Service.loc"
  StoreName = "NAME"
  StoreId = "STORE_ID"
  FldCol = "Addr ADDRESS VISIBLE;Addr2 <none> VISIBLE;City <none> VISIBLE;State <none> VISIBLE;ZIP ZIP VISIBLE;ZIPExt <none> VISIBLE;Firm NAME VISIBLE"
 
  # Setup Store Using Tabular Data
  arcpy.SetupStoreByTable_ba(Input, Locator, FldCol, StoreName, "USE_EXISTING", StoreId, OutFC)
 
  # 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