Clean Contour Gaps

Running programmatically

Cleans the gaps in a polyline dataset representing contours.

Inputs:

Outputs:

Notes:

Example :

Input Contours

Resulting Polylines

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name CleanContourGaps
<input dataset> A String representing the input layer. Must be of Polyline type.
<output dataset> A String - the full name of the output layer.
<Gap Size> A Double representing the maximum gaps to be removed (in the units of the input dataset).
<Elevation Field> A String - the name of the field having the elevation value of the contours.

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, "CleanContourGaps", "input dataset", "output dataset", "Gap Size", "Elevation Field"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "CleanContourGaps" "input dataset" "output dataset" "Gap Size" "Elevation Field"
.NET using ETGWOutX.dll CleanContourGaps(input dataset, output dataset, Gap Size, Elevation Field)
ArcPy arcpy.CleanContourGaps(input dataset, output dataset, "Gap Size", "Elevation Field")

Notes:

(Go to TOP)