MovingPandas implements a Trajectory class and corresponding methods based on GeoPandas.
Check the demo folder for usage examples!
If you are on Windows, here's how to install GeoPandas for OSGeo4W:
- OSGeo4W installer: install python3-pip
- Environment variables: add GDAL_VERSION = 2.3.2 (or whichever version your OSGeo4W installation currently includes)
- OSGeo4W shell: call C:\OSGeo4W64\bin\py3_env.bat
- OSGeo4W shell: pip3 install geopandas (this will error at fiona)
- From https://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona: download Fiona-1.7.13-cp37-cp37m-win_amd64.whl
- OSGeo4W shell: pip3 install path-to-download\Fiona-1.7.13-cp37-cp37m-win_amd64.whl
- OSGeo4W shell: pip3 install geopandas
- (optionally) From https://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree: download Rtree-0.8.3-cp37-cp37m-win_amd64.whl and pip3 install it