Create a Store Layer with Address Data (Business Analyst)

概要

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\ArcGIS\Desktop10.0\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:/Program Files/ArcGIS/Desktop10.0/Business Analyst/Data/USA Geocoding Service/USA Geocoding Service"
  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)

環境

このツールは、ジオプロセシング環境では使用できません

関連項目

ライセンス情報

ArcView: 要 Business Analyst
ArcEditor: 要 Business Analyst
ArcInfo: 要 Business Analyst

10/4/2010