获得 Business Analyst 许可后可用。
摘要
This creates a new store layer (feature class) based on address information.
用法
This tool is often used to enter a few addresses at a time from hard-copy address information.
Use the Setup Store Using Tabular Data tool if you already have a table of address records from which you want to create a store layer.
Only matched records will be in the output store layer.
语法
CreateStoreWithAddressData_ba (Locator, AddressesCollection, OutputFeatureClass, {UsePictureSymbol}, {ImagePath}, {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.
| Boolean |
ImagePath (可选) | 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: CreateStoreWithAddressData.py
# Description: Creates a geocoded store layer based on a single address in Redlands, CA.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.6\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
Locator = "C:/ArcGIS/Business Analyst/US_2017/Data/Geocoding Data/USA_StreetAddress.loc"
AddressesCollection = "Addr:380 New York St|City:Redlands|State:CA"
OutputFeatureClass = "C:/temp/sf_stores.shp"
# Generate Store layers with address data
arcpy.CreateStoreWithAddressData_ba(Locator, AddressesCollection, OutputFeatureClass)
# Release extension license
arcpy.CheckInExtension("Business")
except:
print arcpy.GetMessages(2)
环境
此工具不使用任何地理处理环境。
许可信息
- ArcGIS Desktop Basic: 需要 Business Analyst
- ArcGIS Desktop Standard: 需要 Business Analyst
- ArcGIS Desktop Advanced: 需要 Business Analyst