tracktable.source.path_point_source module¶
Module contents¶
tracktable.source.path_point_source - Generate points along a path
-
class
tracktable.source.path_point_source.
TrajectoryPointSource
[source]¶ Bases:
object
Generate points interpolated between start and finish.
-
start_point
¶ Location for first point
- Type
TrajectoryPoint
-
end_point
¶ Location for last point
- Type
TrajectoryPoint
-
num_points
¶ Number of points in the path (at least 2)
- Type
integer
-
points
()[source]¶ Return an iterable containing the generated points in the trajectory.
Longitude, latitude, altitude (if present) and time will be interpolated evenly from start_point to end_point and start_time to end_time. Each point will have the object ID specified in self.object_id.
- Returns
An iterable of TrajectoryPoint instances
- Raises
ValueError – impossible / illegal values specified for one or more parameters
-