Lines from Points Direction and Distance

Running programmatically

Creates single segmented polylines from a point dataset that has in the attribute table fields which values represent direction and distance from each point to the target point.

Inputs:

Outputs:

Example :

Input Points

Point Attribute Table

Resulting Polylines

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name LinesFromPointDirDist
<input dataset> A String representing the input layer. Must be of Point type.
<output dataset> A String - the full name of the output layer.
<Direction Field> Required. A String representing the name of a field in the in the attribute table of the input dataset field name. The field has the values for the directions of the lines to be created.
<Distance Field> A String representing the name of a field in the in the attribute table of the input dataset field name. The field has the values for the distances of the lines to be created.
<Direction Type> Required. A String indicating the direction type to be used. Valid values:
  • "NorthAzimuth", "NA"
  • "SouthAzimuth", "SA"
  • "Polar"
  • "QuadrantBearing", "QB"
<Direction Units> Required. A String indicating the direction units to be used. Valid values:
  • "DecimalDegrees", "DD"
  • "DegreesMinutesSeconds", "DMS"
  • "Radians"
  • "Gradians""
  • "Gons", "QB"

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, "LinesFromPointDirDist", "input dataset", "output dataset", "Direction Field", "Distance Field", "Direction Type", "Direction Units"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "LinesFromPointDirDist" "input dataset" "output dataset" "Direction Field" "Distance Field" "Direction Type" "Direction Units"
.NET using ETGWOutX.dll LinesFromPointDirDist(input dataset, output dataset, Direction Field, Distance Field, "Direction Type", Direction Units)
ArcPy arcpy.LinesFromPointDirDist(input dataset, output dataset, "Direction Field" , "Distance Field", "Direction Type", "Direction Units")

Notes:

(Go to TOP)