Setup Store Using XY Data (Business Analyst)

概要

使用法

構文

SetupStoreByXYData_ba (Table, LatitudeField, LongitudeField, NameField, StoreIDField, OutputFeatureClass, WayToSpecifyStoreIDField, {UsePictureSymbol}, {Image Path}, {PictureSymbolSize})
パラメータ説明データ タイプ
Table

The table of x,y data that will be used to create stores.

Table View
LatitudeField

The field containing your latitude coordinates (y field).

Field
LongitudeField

The field containing your longitude coordinates (x field).

Field
NameField

The field containing the store name.

Field
StoreIDField

The name used to identify the unique store ID. This ID is a link to the associated customer layer.

Field
OutputFeatureClass

The feature class that will contain the store points.

Feature Class
WayToSpecifyStoreIDField

Selects an existing Store ID Field or creates a new field.

  • USE_EXISTINGUses the existing Store ID Field. This is the default.
  • CREATE_NEWCreates a new store ID field.
Boolean
UsePictureSymbol
(オプション)

Inserts custom store symbology into point feature class.

  • TrueInserts custom symbology.
  • FalseWill not insert custom symbology. This is the default.
Boolean
Image Path
(オプション)

The file location containing the custom store symbology.

File
PictureSymbolSize
(オプション)

The size, in pixels, of the picture symbol.

Long

コード サンプル

SetupStoreByXYData Example (Stand-alone Script)
# Name: SetupStoreByXYData.py
# Description: Creates a store layer from latitude longitude coordinates. 
# Author: ESRI

# Import system modules

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 Setup Store Using XY Data tool
  StorePath = "C:/temp/sf_store.shp"
  NewFC = "C:/temp/sf_storenew.shp"
  Lat = "Latitude"
  Long = "Longitude"
  StoreName = "NAME"
  StoreId = "STORE_ID"
 
  # Sets up a new customer layer based on XY data
  arcpy.SetupStoreByXYData_ba(StorePath,sLat, Long, StoreName, StoreId, NewFC)
 
  # Release extension license 
  arcpy.CheckInExtension("Business")
     
except:
  print arcpy.GetMessages(2)

環境

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

関連項目

ライセンス情報

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

10/4/2010