Draws a perpendicular polyline from each point to the closest polyline from the reference layer and calculates several attributes for each perpendicular line.
Parameters
Expression | Explanation |
---|---|
Function Name | PerpendicularsToPolylines |
<input dataset> | A String representing the input layer. Must be of Point type. |
<reference dataset> | A String representing the reference layer. Must be of Polyline type |
<output dataset> | A String - the full name of the output layer. |
<search tolerance> | A Double representing the Search tolerance to be used. The units of the tolerance are the units of spatial reference of the input dataset if KeepSourceSref = TRUE. Otherwise - the units of spatial reference of the reference dataset. |
{KeepSourceSref} | A Boolean indicating whether the output to have the spatial reference of the input layer. If False or 0, the spatial reference of the reference layer will be used. |
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, "PerpendicularsToPolylines", "input dataset", "reference dataset", "output dataset", "search tolerance", "KeepSourceSref"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "PerpendicularsToPolylines" "input dataset" "reference dataset" "output dataset" "search tolerance" "KeepSourceSref" |
.NET using ETGWOutX.dll | PerpendicularsToPolylines(input dataset,reference dataset, output dataset, search tolerance, KeepSourceSref) |
ArcPy | arcpy.PerpendicularsToPolylines(input dataset, reference dataset, output dataset, "search tolerance" , "KeepSourceSref") |
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.