ArcGIS Desktop

  • Documentación
  • Soporte

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS for Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Create An Empty Customer Layer

Disponible con licencia de Business Analyst.

  • Resumen
  • Uso
  • Sintaxis
  • Muestra de código
  • Entornos
  • Información sobre licencias

Resumen

Creates a new empty point feature class (customer layer). You can define fields to be created in the new layer.

Uso

  • Whenever data is added to your map, it will be associated with the analysis extent that's active at the time. If the active analysis extent is a study area, the layer will be added to the group layer of that study area.

  • You can change the analysis extent at any time using Set Analysis Extent on the Business Analyst menu.

  • You can add new customer features (points) to the Store layer by using the Edit toolbar in ArcMap. Once the layer is editable, you can pushpin (add) new points.

Sintaxis

CreateEmptyCustomerLayer_ba (OutputFeatureClass, {FldsCollection}, {NameField}, {LinkField})
ParámetroExplicaciónTipo de datos
OutputFeatureClass

The feature class that will contain the customer features.

Feature Class
FldsCollection
(Opcional)

Fields to add to the output feature class.

String
NameField
(Opcional)

The field that will identify the customer name.

String
LinkField
(Opcional)

Unique ID linking the customer file with the store file.

String

Muestra de código

CreateEmptyCustomerLayer example (stand-alone script)

# Name: CreateEmptyCustomerLayer.py
# Description: Creates a new empty customer layer.
# 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 an Empty Customer Layer tool
  OutPath = "C:/temp/New_Customers.shp"
  StoreId = "ID"
  Name= "Address"
  FldCol = "Name:ID|Alias:ID|Type:esriFieldTypeSmallInteger|Precision:1;Name:Address|Alias:Address|Type:esriFieldTypeString|Precision:40"
 
# Creates a new feature class (Customer Layer) with empty attribute fields
  arcpy.CreateEmptyCustomerLayer_ba(OutPath,
	  StoreId,
	  Name,
	  FldCol)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento.

Información sobre licencias

  • ArcGIS Desktop Basic: Requiere Business Analyst
  • ArcGIS Desktop Standard: Requiere Business Analyst
  • ArcGIS Desktop Advanced: Requiere Business Analyst

Temas relacionados

  • An overview of the Customer Setup toolset

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

Plataforma ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog interno
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2018 Esri. | Privacidad | Legal