Point Angle and Position

Running programmatically

Identifies the closest polyline from the reference layer to each point and calculates: the angle of the closest polyline segment, the position, stationing of the point along the polyline and the distance to the polyline

Inputs:

Outputs:

Notes:

(Go to TOP)

Parameters

Expression Explanation
Function Name PointsAngleAndPosition
<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, "PointsAngleAndPosition", "input dataset", "reference dataset", "output dataset", "search tolerance", "KeepSourceSref"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "PointsAngleAndPosition" "input dataset"  "reference dataset" "output dataset" "search tolerance" "KeepSourceSref"
.NET using ETGWOutX.dll PointsAngleAndPosition(input dataset,reference dataset, output dataset, search tolerance, KeepSourceSref)
ArcPy arcpy.PointsAngleAndPosition(input dataset, reference dataset, output dataset, "search tolerance" , "KeepSourceSref")

Notes:

(Go to TOP)