GeoTrajectory#

A GeoTrajectory specialized for trajectory data representing the evolution of a traffic participant but with position information enoded as GeoObject using shapely. A Geotrajectory is a collection of tasi.GeoPose.

digraph inheritance61adb80831 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "CollectionBase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "PandasBase" -> "CollectionBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "IndexMixin" -> "CollectionBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DataFrame" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Two-dimensional, size-mutable, potentially heterogeneous tabular data."]; "GeoDataFrame" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A GeoDataFrame object is a pandas.DataFrame that has one or more columns"]; "GeoTrajectory" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Representation of a traffic participant's trajectory with geospatial encoded position"]; "TrajectoryBase" -> "GeoTrajectory" [arrowsize=0.5,style="setlinewidth(0.5)"]; "GeoDataFrame" -> "GeoTrajectory" [arrowsize=0.5,style="setlinewidth(0.5)"]; "IndexMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "LocatableEntity" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "PandasBase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "DataFrame" -> "PandasBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TASIBase" -> "PandasBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TimestampMixin" -> "PandasBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PoseCollectionBase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "CollectionBase" -> "PoseCollectionBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TASIBase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "LocatableEntity" -> "TASIBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TimestampMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "TrajectoryBase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled"]; "PoseCollectionBase" -> "TrajectoryBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

Serialization / IO / conversion#

GeoTrajectory.from_csv(file[, indices])

Read a dictionary-alike object from a .csv file as a pandas DataFrame.

Indexing#

GeoTrajectory.att(timestamps[, columns])

Filtering#

GeoTrajectory.during(since, until[, ...])

Select rows within a specific time range (include "since", exclude "until").

Analysis#

Attributes#

GeoTrajectory.attributes

Returns the dataset attributes

GeoTrajectory.id

Returns the id in the pose

GeoTrajectory.interval

Returns the time interval this object spans

GeoTrajectory.timestamps

The unique timestamps in the dataframe

Note

All pandas DataFrame methods are also available.