Setup Customers Using XY Data (Business Analyst)

Lizenzstufe:BasicStandardAdvanced

Zusammenfassung

Transforms x,y (latitude-longitude) coordinate data into a customer layer.

Verwendung

Syntax

SetupCustomersByXYData_ba (Table, LatitudeField, LongitudeField, NameField, LinkField, OutputFeatureClass)
ParameterErläuterungDatentyp
Table

The input table used for setting up your customer layer.

Table View
LatitudeField

The field containing your latitude coordinates (Y field).

Field
LongitudeField

The field containing your longitude coordinates (X field).

Field
NameField

The unique identifier for the customer data (commonly the customer name).

Field
LinkField

Unique ID linking the customer file with the store file.

Field
OutputFeatureClass

The feature class that will contain the customer features.

Feature Class

Codebeispiel

SetupCustomersByXYData Example (Stand-alone Script)
# Name: SetupCustomersByXYData.py
# Description: Creates a customer layer from latitude longitude coordinates. 
# 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") 
 
#  Define the parameters for the Setup Customers Using XY Data tool
  CustPath = "C:/temp/sf_cust.dbf"
  NewFC = "C:/temp/sf_customer.shp"
  Lat = "Latitude"
  Long = "Longitude"
  CustName = "NAME"
  StoreId = "STORE_ID"
 
# Sets up a new customer layer based on XY data
  arcpy.SetupCustomersByXYData_ba(CustPath, Lat, Long, CustName, StoreId, NewFC)
 
# 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