Create a Store Layer with Address Data (Business Analyst)

许可等级:BasicStandardAdvanced

摘要

This creates a new store layer (feature class) based on address information.

用法

语法

CreateStoreWithAddressData_ba (Locator, AddressesCollection, OutputFeatureClass, {UsePictureSymbol}, {Image Path}, {PictureSymbolSize})
参数说明数据类型
Locator

The address locator to use for matching addresses.

Address Locator
AddressesCollection

Addresses to be geocoded.

String
OutputFeatureClass

The feature class that will contain the store features.

Feature Class
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

代码实例

CreateStoreWithAddressData Example (Stand-alone Script)
# Name: Creates a geocoded store layer based on a single address in Redlands, CA.
# Author: Esri

# Import system modules

import arcview
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 a Store Layer with Address Data tool
  OutFC= "C:/temp/sf_stores.shp"
  Locator = "C:/ArcGIS/Business Analyst/US_2013/Data/USA Geocoding Service/Geocoding Data/USA Geocoding Service.loc"
  AddressCol = "Addr:380 New York St|City:Redlands|State:CA"
 
# Generate Store layers with address data
  arcpy.CreateStoreWithAddressData_ba(Locator, AddressCol, 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