ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Create An Empty Store Layer

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

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

Usage

  • When 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 empty store layer by using the Edit toolbar in ArcMap. Once the layer is editable, you can pushpin (add) new points.

Syntax

CreateEmptyStoreLayer_ba (OutputFeatureClass, FldsCollection, {NameField}, {StoreIDField}, {UsePictureSymbol}, {ImagePath}, {PictureSymbolSize})
ParameterExplanationData Type
OutputFeatureClass

The feature class that will contain the store points.

Feature Class
FldsCollection
[[Field Name, Alias Name, Field Type, Precision],...]

Fields to add to the output feature class.

String
NameField
(Optional)

Selects a field to be used to identify the store name.

String
StoreIDField
(Optional)

Selects a field to be used as the store ID field.

String
UsePictureSymbol
(Optional)

Inserts custom store symbology into point feature class.

  • True —Inserts custom symbology
  • False —Will not insert custom symbology
Boolean
ImagePath
(Optional)

The file location containing the custom store symbology.

File
PictureSymbolSize
(Optional)

The feature class that will contain the store points.

Long

Code Sample

CreateEmptyStoreLayer Example (Stand-alone Script)
# Name: CreateEmptyStoreLayer.py
# Description: Creates an empty store layer.
# Author: Esri

# Import system modules

import arview
import arcpy

arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.3\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
 
# Defines the parameters for the Create an Empty Store Layer tool
  OutPath = "C:/temp/New_Store.shp"
  Name= "Address"
  StoreId = "ID"
  FldCol = "Name:ID|Alias:|Type:esriFieldTypeSmallInteger|Precision:1|Scale:0;Name:Address|Alias:|Type:esriFieldTypeString|Precision:40|Scale:0"
 
# Creates a new feature class (Store Layer) with empty attribute fields
  arcpy.CreateEmptyStoreLayer_ba(OutPath, FldCol, Name, StoreId)
 
# Release extension license 
  arcpy.CheckInExtension("Business")
     
except:
  print arcpy.GetMessages(2)

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An overview of the Store Setup toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal