TrackCollection#
- class core.track_collection.TrackCollection(TRACES=[])[source]#
Bases:
objectTODO
Methods:
__init__([TRACES])TRACES: list of Track
addTrack(track)TODO
size()TODO
length()TODO
duration()TODO
TODO
getTrack(i)TODO
getTrackWithTid(tid)copy()TODO
setTimeZone(zone)TODO
convertToTimeZone(zone)TODO
frequency([mode])TODO
createSpatialIndex([resolution, verbose])TODO
exportSpatialIndex(filename)TODO
importSpatialIndex(filename)TODO
getSRID()Return the SRID of collection
toECEFCoords([base])TODO
toENUCoords([base])TODO
toGeoCoords([base])TODO
TODO
smooth([constraint])TODO
summary()Print summary (complete wkt below)
toWKT()Transforms collection into WKT string, one linestring per track
addAnalyticalFeature(algorithm[, name])TODO
getAnalyticalFeature(af_name[, withNan])getTimestamps_str([withNan])Return the timestamps in a list format.
operate(operator[, arg1, arg2, arg3])TODO
plot([symbols, markersize, margin, append])TODO
filterOnBBox(bbox)TODO
bbox()TODO
resample(delta[, algo, mode])Resampling tracks with linear interpolation
TODO
simplify(tolerance[, mode])TODO
removeTrack(track)TODO
Remove tracks without observation
segmentation(afs_input, af_output, ...[, ...])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.
noise([sigma, kernel, force, cycle])TODO
getLenth()randNTracks(N)Return a sample of n tracks from the collection.
- getSRID()[source]#
Return the SRID of collection
- Return type:
int- Returns:
SRID of current collection
- resample(delta, algo=1, mode=1)[source]#
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