Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does 0.1.dev2 from conda-forge include TrajectoryManager? #41

Closed
jonititan opened this issue Nov 14, 2019 · 10 comments
Closed

Does 0.1.dev2 from conda-forge include TrajectoryManager? #41

jonititan opened this issue Nov 14, 2019 · 10 comments
Labels
question Further information is requested

Comments

@jonititan
Copy link

jonititan commented Nov 14, 2019

Sad error here.
Clean install into dedicated environment on Windows 10.
environment.yml records version as

movingpandas=0.1.dev2=py37h39e3cac_0

When trying to use the TrajectoryManager class from the tutorial it fails saying the module has no such attribute.

I can't see any releases on github so wondered if conda has lagged behind github?

@anitagraser
Copy link
Collaborator

Yes, TrajectoryManager has only recently been added and is not yet available via conda

@anitagraser
Copy link
Collaborator

The Notebooks in https://github.com/anitagraser/movingpandas/tree/240020788a8798b56727506b7490acbfff364f3d should work with the conda version

@ghost
Copy link

ghost commented Nov 21, 2019

Hi, does this mean that we cann't yet use our own data until TrajectoryManager is available?

@jonititan
Copy link
Author

The only problem I had was with regard to plotting. I was able to get it into Geopandas just fine and then convert to Movingpandas trajectory by passing a dataframe of points. In my case it was aircraft points during a flight. You can still use the mpd.Trajectory class

@anitagraser
Copy link
Collaborator

Alternatively, you can also use the development version by following the instructions in https://github.com/anitagraser/movingpandas#development-installation

@ghost
Copy link

ghost commented Nov 22, 2019

That's a very good alternative! When I load my data as a gpkg geopackage everything works just fine. However, reading a csv finally gives an error with the TrajactoryManager: 'DataFrame' object has no attribute 'crs'

@anitagraser
Copy link
Collaborator

For CSV, we have to specify the CRS manually, because there is no metadata section to read it from:

gdf = geopandas.read_file(path_to_csv)
gdf.crs = {'init' :'epsg:4326'}
gdf.plot()

@anitagraser anitagraser added the question Further information is requested label Nov 22, 2019
@anitagraser anitagraser changed the title AttributeError: module 'movingpandas' has no attribute 'TrajectoryManager' Does 0.1.dev2 from conda-forge include TrajectoryManager? Nov 22, 2019
@ghost
Copy link

ghost commented Nov 24, 2019

Thanks. The read_file method returns max recursive errors or dead kernels, however when I first use read_csv and then convert to a geodataframe it works!
I haven't been able to get the trajectories (TimeManager objects) into qgis yet.

@anitagraser
Copy link
Collaborator

@djoostwoud I started a QGIS plugin that adds MovingPandas functionality to the Processing Toolbox: https://github.com/anitagraser/qgis-processing-trajectory. It should give you a general idea of how trajectories can be used in QGIS.

The plugin development is currently on ice until MovingPandas has reached at least 1.0 release status.

@anitagraser
Copy link
Collaborator

The new movingpandas 0.2rc1 includes TrajectoryCollection (formerly called TrajectoryManager) https://anaconda.org/conda-forge/movingpandas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants