Skip to content

Latest commit

 

History

History
113 lines (66 loc) · 3.07 KB

io.rst

File metadata and controls

113 lines (66 loc) · 3.07 KB

Input/Output

We primarily support three types of data persistence:

Our primary focus lies on supporting PostGIS databases for persistence, but of course you can use the standard Pandas/Python tools to persist your data to any database with a minimal bit of tweaking. And of course you can also keep all data in memory while you do an analysis, e.g., in a Jupyter notebook.

All the read/write functions are made available in the top-level trackintel module, i.e., you can use them as trackintel.read_positionfixes_csv('data.csv'), etc. Note that these functions are wrappers around the (Geo)Pandas CSV, renaming and SQL functions. As such, all *args and **kwargs are forwarded to them.

CSV File Import

trackintel.io.read_positionfixes_csv

trackintel.io.read_triplegs_csv

trackintel.io.read_staypoints_csv

trackintel.io.read_locations_csv

trackintel.io.read_trips_csv

trackintel.io.read_tours_csv

GeoDataFrame Import

trackintel.io.read_positionfixes_gpd

trackintel.io.read_triplegs_gpd

trackintel.io.read_staypoints_gpd

trackintel.io.read_locations_gpd

trackintel.io.read_trips_gpd

trackintel.io.read_tours_gpd

PostGIS Import

trackintel.io.read_positionfixes_postgis

trackintel.io.read_triplegs_postgis

trackintel.io.read_staypoints_postgis

trackintel.io.read_locations_postgis

trackintel.io.read_trips_postgis

trackintel.io.read_tours_postgis

CSV File Export

trackintel.io.write_positionfixes_csv

trackintel.io.write_triplegs_csv

trackintel.io.write_staypoints_csv

trackintel.io.write_locations_csv

trackintel.io.write_trips_csv

trackintel.io.write_tours_csv

PostGIS Export

trackintel.io.write_positionfixes_postgis

trackintel.io.write_triplegs_postgis

trackintel.io.write_staypoints_postgis

trackintel.io.write_locations_postgis

trackintel.io.write_trips_postgis

trackintel.io.write_tours_postgis

Predefined dataset readers

We also provide functionality to parse well-known datasets directly into the trackintel framework.

Geolife

We support easy parsing of the Geolife dataset including available mode labels.

trackintel.io.read_geolife

trackintel.io.geolife_add_modes_to_triplegs

GPX

Load multiple tracks of the same user with this function.

trackintel.io.read_gpx