Go to ET GeoWizards 12.x User Guide
Split By Attributes
Go to ToolBox
Implementation
Splits a layer into separate datasets based on an the attribute values in the selected
field
Inputs:
- Layer to be split - a Point, Polyline or Polygon layer
- Output folder
- Name field - a field from the input layer that will be used for naming of
the output datasets
- Prefix - a text that will be used together with the Name field for
generating names of the output datasets
Outputs:
- New feature classes
- The attributes are preserved
- The spatial reference of the input data set is preserved
Examples:
The naming of the output dataset is based on the Name field selected and the
prefix.
- If the Prefix = "Rivers" and the Name field = "StateNames"
the resulting feature classes will be named
- "Rivers_Nevada.shp"
- "Rivers_Texas.shp"
- "Rivers_Arizona.shp"
- ...............................
- If the prefix box is left empty and the Name field = "StateNames"
the resulting feature classes will be named
- "Nevada.shp"
- "Texas.shp"
- "Arizona.shp"
- .................................
- If the Prefix = "Roads" and the Name field = "StateNames"
and in the output folder there is an existing feature class named "Roads_Nevada.shp",
the new feature class will be named "Roads_Nevada1.shp"
ToolBox
implementation
(Go to TOP)
Command line syntax
ET_GPSplitByAttributes <input_dataset>
<out_folder> <name_field> {prefix}
Parameters
Expression |
Explanation |
<input_dataset> |
A
Point, Polyline or Polygon feature class or feature layer |
<out_folder> |
A String
- the name of the output folder (must exist) |
<name_field> |
A String - the name of a field from
the input layer used for splitting and for generating the names of the
output names |
{prefix} |
A
String - used for generating the names of the output feature classes |
Scripting syntax
ET_GPSplitByAttributes (input_dataset, out_folder,
name_field, prefix)
See the explanations above:
<> - required parameter
{} - optional parameter
Copyright © Ianko Tchoukanski |