Create a Store Layer with Address Data (Business Analyst)
Zusammenfassung
This creates a new store layer (feature class) based on address information.
Verwendung
-
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.
Syntax
CreateStoreWithAddressData_ba (Locator, AddressesCollection, OutputFeatureClass, {UsePictureSymbol}, {Image Path}, {PictureSymbolSize})
Parameter | Erläuterung | Datentyp |
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 (optional) |
Inserts custom store symbology into point feature class.
| Boolean |
Image Path (optional) |
The file location containing the custom store symbology. | File |
PictureSymbolSize (optional) |
The feature class that will contain the store points. | Long |
Codebeispiel
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)
Umgebung
Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.
Verwandte Themen
Lizenzierungsinformationen
ArcGIS for Desktop Basic: Erfordert Business Analyst
ArcGIS for Desktop Standard: Erfordert Business Analyst
ArcGIS for Desktop Advanced: Erfordert Business Analyst
4/26/2014