获得 Business Analyst 许可后可用。
摘要
Allows you to input addresses to be geocoded in a new customer layer.
用法
This tool is often used when you want to enter a few addresses at a time from hard-copy address information.
Use the Setup Customers Using Tabular Data tool if you already have a table of address records with which you want to create a store layer.
Only matched records will be included in the output customer layer.
语法
CreateCustomerWithAddressData_ba (Locator, AddressesCollection, OutputFeatureClass)
参数 | 说明 | 数据类型 |
Locator | The address locator. | Address Locator |
AddressesCollection | The addresses that are to be geocoded and included in the new store layer. | String |
OutputFeatureClass | The feature class that will contain the customer features. | Feature Class |
代码示例
CreateCustomerWithAddressData example (stand-alone script)
# Name: CreateCustomerWithAddressData.py
# Description: Creates a geocoded customer 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 Customer Layer with Address Data tool
OutFC= "C:/temp/Redlands_customer.shp"
Locator = "C:/ArcGIS/Business Analyst/US_2017/Data/Geocoding Data/USA_StreetAddress.loc"
AddressCol = "Addr:380 New York St|City:Redlands|State:CA"
# Create output file for Create customer layers with address data tool
arcpy.CreateCustomerWithAddressData_ba(OutFC,
Locator,
AddressCol)
# 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