movingpandas-examples icon indicating copy to clipboard operation
movingpandas-examples copied to clipboard

ValueError: Latitude must be in the [-90; 90] range.

Open wongimae opened this issue 2 years ago • 2 comments

I tried to run the code below

gdf = gpd.read_file('geolife_small.gpkg')
gdf
tc = mpd.TrajectoryCollection(gdf, 'trajectory_id', t='t')

my_traj = tc.trajectories[0]
my_traj
detector = mpd.TrajectoryStopDetector(my_traj)
stop_time_ranges = detector.get_stop_time_ranges(min_duration=timedelta(seconds=60), max_diameter=100)

Essentially following the tutorial on stop detection with single trajectory. But I got ValueError: Latitude must be in the [-90; 90] range.

This is not an issue when the longitude value is less than 90.

wongimae avatar Aug 03 '23 10:08 wongimae

Yes, this is a known issue which I've fixed recently https://github.com/movingpandas/movingpandas/issues/336

Please stay tuned for the new release in the upcoming days

anitagraser avatar Aug 03 '23 19:08 anitagraser

Great, thanks so much. Looking forward

wongimae avatar Aug 04 '23 05:08 wongimae