ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Setup Store Using XY Data

获得 Business Analyst 许可后可用。

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Tool allows you to turn x,y (latitude-longitude) coordinate data into store points.

使用方法

  • This tool allows you to create a store layer based on x and y columns from an input table.

  • Many forms of GPS-collected data will contain latitude/longitude coordinates. You can use this tool to convert GPS-collected data into stores.

  • If your x,y data is stored in a relational database, such as Access, it can be accessed through this tool utilizing the Database Connections wizard in ArcCatalog.

语法

arcpy.ba.SetupStoreByXYData(Table, LatitudeField, LongitudeField, NameField, StoreIDField, OutputFeatureClass, WayToSpecifyStoreIDField, {UsePictureSymbol}, {ImagePath}, {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_EXISTING —Uses the existing Store ID Field. This is the default.
  • CREATE_NEW —Creates a new store ID field.
Boolean
UsePictureSymbol
(可选)

Inserts custom store symbology into point feature class.

  • True —Inserts custom symbology.
  • False —Will not insert custom symbology. This is the default.
Boolean
ImagePath
(可选)

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 arcview
import arcpy

arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")

try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
 
# Defines the parameters for the Setup Store Using XY Data tool
  Table = "C:/temp/sf_store.shp"
  LatitudeField = "Latitude"
  LongitudeField = "Longitude"
  NameField = "NAME"
  StoreIDField = "STORE_ID"
  OutputFeatureClass = "C:/temp/sf_storenew.shp"
 
# Sets up a new customer layer based on XY data
  arcpy.SetupStoreByXYData_ba(Table, LatitudeField, LongitudeField, NameField, StoreIDField, OutputFeatureClass)
 
# Release extension license 
arcpy.CheckInExtension("Business")

环境

此工具不使用任何地理处理环境。

许可信息

  • Basic: 需要 Business Analyst
  • Standard: 需要 Business Analyst
  • Advanced: 需要 Business Analyst

相关主题

  • An overview of the Store Setup toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2022 Esri. | 隐私政策 | 法律声明