ET GeoWizards Scripting
Split By Location
(Go to the main page of the function)
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.
Syntax
Dim ET As New ETGW_Core
Set variable = ET.SplitByLocation(pInFeatureClass, pClipFeatureClass, _
sOutDir, dFuzzyTol, sPrefix, sNameField, _
bAddLayer, pMap)
The SplitByLocation method syntax has the following object qualifier and arguments:
| Part | Description |
|---|---|
| variable | A Boolean indicating the success or failure of the method |
| pInFeatureClass | Required. An IFeatureClass object (Point, Polyline or Polygon feature class) |
| pClipFeatureClass | Required. An IFeatureClass object (Must be a Polygon feature class). The features of this feature class will be used for clipping |
| sOutDir | Required. A String - the name of the output folder (must exist) |
| dFuzzyTol | Required. A Double representing the Fuzzy tolerance (in the units of the input dataset) to be used |
| sPrefix | Required. A String - used for generating the names of the output feature classes |
| sNameField | Required. A String - the name of a field from the clip layer used for generating the names of the output names |
| bAddLayer | Required. A Boolean indicating whether the resulting feature classes will be added to the map |
| pMap | Required. An IMap object. Can be set to Nothing if you don't want to add the resulting datasets to the map. |