Cleans the gaps in a polyline dataset representing contours.
Input Contours

Resulting Polylines

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). |
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:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.