Split By Attribute Tool

3837
5
11-18-2014 08:01 AM
NabilDroby
New Contributor

I found this tool very handy in splitting shapefiles by their attributes, and I wanted to share it hoping someone might get benefit of it.

Split By Attribute Tool - Desktop Decision Support Tools 

0 Kudos
5 Replies
ChrisDonohue__GISP
MVP Frequent Contributor

Looks interesting. Prebuilt, so no need for Modelbuilder and/or coding to get the same results.

Chris Donohue, GISP

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

Been around as a free tool for some time .... only recently available at all license levels

0 Kudos
JamesGibson
New Contributor III

I recently needed this function and found that tool today (The one by Dan).  Is there anyway for it to output files into a gdb? 

In my case, I needed it to split up a street maintenance plan by category,  but when it splits the files out to a shapefile, it truncates the header name. 

0 Kudos
ChrisDonohue__GISP
MVP Frequent Contributor

Unfortunately, the writeup states that geodatabases are untested and unsupported by this tool.

One can build a version of the same thing that will do geodatbase output with Modelbuilder.  It could be done with an "Iterate Row Selection" iterator with the "Group by Fields" set to the category field.  Then add a Copy Features tool to the right to save each selection that comes out of the Iterator as an output.  Then to have the output name the file by category, you can use an in-line variable (see below):

Iterate_Row_split_out.jpg

What is Modelbuilder

http://resources.arcgis.com/en/help/main/10.1/index.html#//002w00000001000000

Iterators

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00400000001n000000.htm

In-line Variable Substitution

http://resources.arcgis.com/en/help/main/10.2/index.html#/Examples_of_inline_model_variable_substitu...

Chris Donohue, GISP

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

In the works...but most of the effort has been to providing functionality so that the resultant outputs... ie shapefiles... can be used as inputs to other software and open-source GIS packages.  If you can abide by the field length limitations of shapefiles then there is no issue.  If you need long field names you will have to wait.

The next version will also output to other formats including csv and numpy arrays etc

0 Kudos