More

Validating data in ModelBuilder with TrackBuilder tool?


I have FGDB with points feature classes that I want to convert to lines using using a ready-made script called TrackBuilder. I am using model builder:

When I populate the Track Builder script tool with the parameters everything looks fine. But when I validate the tool goes white

WHY?

The beginning of the Track Builder script looks like this:

import arcpy, os, sys, traceback, datetime, math, re ## Input Paramaters sInputFile = arcpy.GetParameterAsText(0) sID_Field = arcpy.GetParameterAsText(1) sDT_Field = arcpy.GetParameterAsText(2) sOutWorkspace = arcpy.GetParameterAsText(3) sOutName = arcpy.GetParameterAsText(4) sLineMethod = arcpy.GetParameterAsText(5) sMaxTimeMinutes = arcpy.GetParameterAsText(6) sMaxDistMiles = arcpy.GetParameterAsText(7) sIntervalHours = arcpy.GetParameterAsText(8) sAddVoyageData = arcpy.GetParameterAsText(9) voyageTable = arcpy.GetParameterAsText(10) voyageMethod = arcpy.GetParameterAsText(11) sAddVesselData = arcpy.GetParameterAsText(12) vesselTable = arcpy.GetParameterAsText(13)

According to the TrackBuilder instructions the input point should be a feature class containing a date field and an unique number for each ship.

Everything looks correct here:

The whole TrackBuilder script can be found here


This is alternative way to convert point to line using arcpy:

How to create lines from points pair coordinates with arcpy?