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. |
<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. |
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:
<> - 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.