Skip to main content
`Ctrl`+`K`

# TrackCollection

This module contain a class to manage the collections of tracks

class tracklib.core.TrackCollection.TrackCollection(TRACES=[])

  TODO

  __init__(TRACES=[])

    TRACES: list of Track

  addTrack(track)

    TODO

  size()

    TODO

  length()

    TODO

  duration()

    TODO

  getTracks()

    TODO

  getTrack(i)

    TODO

  copy()

    TODO

  setTimeZone(zone)

    TODO

  convertToTimeZone(zone)

    TODO

  frequency(mode='temporal')

    TODO

  createSpatialIndex(resolution=None, verbose=True)

    TODO

  exportSpatialIndex(filename)

    TODO

  importSpatialIndex(filename)

    TODO

  toECEFCoords(base=None)

    TODO

  toENUCoords(base=None)

    TODO

  toGeoCoords(base=None)

    TODO

  toENUCoordsIfNeeded()

    TODO

  smooth(constraint=1000.0)

    TODO

  summary()

    Print summary (complete wkt below)

  addAnalyticalFeature(algorithm, name=None)

    TODO

  getAnalyticalFeature(af_name, withNan=True)
  operate(operator, arg1=None, arg2=None, arg3=None)

    TODO

  plot(symbols=None, markersize=[4], margin=0.05, append=False)

    TODO

  filterOnBBox(bbox)

    TODO

  bbox()

    TODO

  resample(delta, algo=1, mode=1)

    Resampling tracks with linear interpolation

    Parameters

      - delta – interpolation interval (time in sec if temporal mode is selected, space in meters if spatial).

      - mode (`Literal`[1, 2]) –

        Mode of interpolation. Available modes are:

        - MODE_SPATIAL (mode=1)

        - MODE_TEMPORAL (mode=2)

    Params algorithm

      of interpolation. Available algorithm are :

      - ALGO_LINEAR (algo=1)

      - ALGO_THIN_SPLINES (algo=2)

      - ALGO_B_SPLINES (algo=3)

      - ALGO_GAUSSIAN_PROCESS (algo=4)

    NB: In temporal mode, argument may be:

    > - an integer or float: interval in seconds

    > - a list of timestamps where interpolation should be computed

    > - a reference track

  __collectionnify()

    TODO

  simplify(tolerance, mode=1)

    TODO

  removeTrack(track)

    TODO

  removeEmptyTrack()

    Remove tracks without observation

  segmentation(afs_input, af_output, thresholds_max, mode_comparaison=1)

    TODO

  split_segmentation(af_output)

    Découpe les traces suivant la segmentation définie par le paramètre af_output ET Remplace la trace par les traces splittées s’il y a une segmentation.