tracktable.feature.interpolated_points module

Module contents

tracktable.feature.interpolated_points - Generate points along a path

class tracktable.feature.interpolated_points.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