USGS - science for a changing world

Upper Midwest Environmental Sciences Center

Decision Support Systems

Split By Attribute Tool

The Split By Attribute Tool is a customization of ArcMap 10. The tool takes a single shapefile and splits it into many shapefiles based on the unique values of a chosen field.

FoxSplitByAttributeAddin_10_1.zip

FoxSplitByAttributeAddin_10_2.zip

FoxSplitByAttributeAddin10_3_1.zip

FoxSplitByAttributeAddin10_5.zip

To install:

  1. Save the file: FoxSplitByAttributeAddin.zip to your local hard drive
  2. Extract contents
  3. Double click FoxSplitByAttributeAddin.esriAddIn file
  4. Open ArcMap 10
  5. Click on the Customize menu and the Customize Mode… item
  6. On the Customize dialog click the Commands tab
  7. Scroll down and click on Fox Tools in the Categories list
  8. Drag the Split By Attribute button to a toolbar on the ArcMap 10 interface

 

 

Figure 1. The Split By Attribute dialog.
Figure 1. The Split By Attribute dialog.

To use:

  1. Click the Split By Attribute button to open the Split By Attribute dialog (Figure 1)
  1. Choose a Feature Layer to split into component layers
  2. Choose a Split Field whose unique values will be used as the basis of the split
  3. Optional: enter an Optional Output Prefix, this value will added to the name of all of the output layers
  4. Click the Browse button and identify the output directory. The tool will create a folder and file geodatabase with the following structure: User identified directory + \SBA + Layer Name + Iterative Number (as needed)\SBA.gdb
  5. Check the Only export selected features checkbox if you want to restrict the export operation to selected features
  6. Click OK button
  7. Program execution:
    1. The file geodatabase specified in the Output Directory is created
    2. Unique values from the chosen field are retrieved from the feature class
    3. The program iteratively queries the feature class for each unique value in the split field and exports the resulting selection to the file geodatabase. Each layer will named with the following structure: Optional Output Prefix + Split Value (Figure 2)

Figure 2. An example of an input layer split on the State_Name field and the resulting output layers.
Figure 2. An example of an input layer split on the State_Name field and the resulting output layers.

Impact of UMESC Science

Split by attribute is a GIS tool that provides functionality not inherent to ArcMap 10. This tool provides a service of efficiency to geospatial analysts.

Point of contact: Tim Fox


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey

URL: http://www.umesc.usgs.gov/managment/dss/split_by_attribute_tool.html
Page Contact Information: Contacting the Upper Midwest Environmental Sciences Center
Page Last Modified: December 1, 2017