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.
<Elevation Field> A String - the name of the field having the elevation value of the contours.
<Gap Size> A Double representing the maximum gaps to be removed (in the units of the input dataset).

Running the function

ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETSurface\ETSRun.exe")

Language Syntax
Python subprocess.call([ETSPath, "CleanContourGaps", "input dataset", "output dataset", "Elevation Field", "Gap Size"])
.NET using ETSRun.exe StartInfo.FileName = ETSPath
StartInfo.Arguments = "CleanContourGaps" "input dataset" "output dataset" "Elevation Field" "Gap Size"
.NET using ETSOutX.dll CleanContourGaps(input dataset, output dataset, Elevation Field, Gap Size)
ArcPy arcpy.CleanContourGaps(input dataset, output dataset, "Elevation Field", "Gap Size")

Notes:

(Go to TOP)