Split By Location

Running programmatically

Clips the features of the input layer with the polygons of the split layer. Creates a new dataset for the features of the input layer (or portions of them) contained by each polygon from the split layer

Inputs:

Outputs:

Notes:

Examples:

The naming of the output dataset is based on the Name field selected and the prefix.

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name SplitByLocation
<input dataset> A String representing the input layer.
<clip dataset> A String representing the clip layer.
<output workspace> A String - the full name of the output folder (for shapefiles) or File GDB.
<Name Field> A String - the name of the field which values are to be used for naming the output datasets.
{Prefix} A String representing the prefix added to the names of the output datasets.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "SplitByLocation", "input dataset", "clip dataset", "output workspace", "Name Field", "Prefix"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "SplitByLocation" "input dataset" "clip dataset" "output workspace" "Name Field" "Prefix"
.NET using ETGWOutX.dll SplitByLocation(input dataset, clip dataset, output workspace, Name Field, Prefix)
ArcPy arcpy.SplitByLocation(input dataset, clip dataset, output workspace, "Name Field", "Prefix")

Notes:

(Go to TOP)