-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: add centroid method for angles (#453)
* ENH: add centroid method for angles * BUG: add missing index to centroid output * BUG: Fix angle median bug for sp * CLN: black * CLN: give up and adapt test * TST: Add test for planar crs
- Loading branch information
Showing
8 changed files
with
107 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 1,15 @@ | ||
id,user_id,started_at,finished_at,origin_staypoint_id,destination_staypoint_id,geom | ||
0,0,2008-10-23 02:53:04 00:00,2008-10-23 03:05:00 00:00,,0.0,"MULTIPOINT (116.3184169999999966 39.9847019999999986, 116.2987250000000046 39.9840195000000035)" | ||
1,0,2008-10-23 04:08:07 00:00,2008-10-23 04:34:37 00:00,0.0,1.0,"MULTIPOINT (116.2987250000000046 39.9840195000000035, 116.3248009999999937 39.9997295000000021)" | ||
2,0,2008-10-23 09:42:25 00:00,2008-10-23 10:45:41 00:00,1.0,5.0,"MULTIPOINT (116.3248009999999937 39.9997295000000021, 116.3216824999999943 40.0089049999999986)" | ||
3,0,2008-10-23 11:09:22 00:00,2008-10-23 11:10:57 00:00,5.0,6.0,"MULTIPOINT (116.3216824999999943 40.0089049999999986, 116.3209779999999967 40.0092695000000033)" | ||
4,0,2008-10-24 02:09:59 00:00,2008-10-24 02:47:06 00:00,6.0,,"MULTIPOINT (116.3209779999999967 40.0092695000000033, 116.3211620000000011 40.0092089999999985)" | ||
5,1,2008-10-23 05:53:05 00:00,2008-10-23 06:01:42 00:00,,10.0,"MULTIPOINT (116.3192360000000036 39.9840939999999989, 116.3275380000000041 39.9780510000000007)" | ||
6,1,2008-10-23 10:32:53 00:00,2008-10-23 11:10:19 00:00,10.0,11.0,"MULTIPOINT (116.3275380000000041 39.9780510000000007, 116.3064135000000050 40.0138019999999983)" | ||
7,1,2008-10-23 11:49:08 00:00,2008-10-23 11:49:48 00:00,11.0,12.0,"MULTIPOINT (116.3064135000000050 40.0138019999999983, 116.3065320000000042 40.0138200000000026)" | ||
8,1,2008-10-23 23:43:46 00:00,2008-10-24 00:23:03 00:00,12.0,14.0,"MULTIPOINT (116.3065320000000042 40.0138200000000026, 116.3266370000000052 39.9779920000000004)" | ||
9,1,2008-10-24 01:45:41 00:00,2008-10-24 02:02:46 00:00,14.0,15.0,"MULTIPOINT (116.3266370000000052 39.9779920000000004, 116.3084029999999984 39.9810395000000027)" | ||
10,1,2008-10-24 02:28:19 00:00,2008-10-24 02:31:32 00:00,15.0,16.0,"MULTIPOINT (116.3084029999999984 39.9810395000000027, 116.3101889999999941 39.9813740000000024)" | ||
11,1,2008-10-24 03:16:35 00:00,2008-10-24 04:12:50 00:00,16.0,20.0,"MULTIPOINT (116.3101889999999941 39.9813740000000024, 116.3267620000000022 39.9779330000000002)" | ||
12,1,2008-10-24 05:28:05 00:00,2008-10-24 05:39:50 00:00,20.0,21.0,"MULTIPOINT (116.3267620000000022 39.9779330000000002, 116.3112610000000018 39.9827119999999994)" | ||
13,1,2008-10-24 06:08:42 00:00,2008-10-24 06:35:50 00:00,21.0,,"MULTIPOINT (116.3112610000000018 39.9827119999999994, 116.3270629999999954 39.9778995000000007)" | ||
0,0,2008-10-23 02:53:04 00:00,2008-10-23 03:05:00 00:00,,0.0,"MULTIPOINT (116.318417 39.984702, 116.29872033333335 39.98398866666667)" | ||
1,0,2008-10-23 04:08:07 00:00,2008-10-23 04:34:37 00:00,0.0,1.0,"MULTIPOINT (116.29872033333335 39.98398866666667, 116.324803 39.99972133333333)" | ||
2,0,2008-10-23 09:42:25 00:00,2008-10-23 10:45:41 00:00,1.0,5.0,"MULTIPOINT (116.324803 39.99972133333333, 116.321629 40.00890557142857)" | ||
3,0,2008-10-23 11:09:22 00:00,2008-10-23 11:10:57 00:00,5.0,6.0,"MULTIPOINT (116.321629 40.00890557142857, 116.32097166666667 40.00928)" | ||
4,0,2008-10-24 02:09:59 00:00,2008-10-24 02:47:06 00:00,6.0,,"MULTIPOINT (116.32097166666667 40.00928, 116.321162 40.009209)" | ||
5,1,2008-10-23 05:53:05 00:00,2008-10-23 06:01:42 00:00,,10.0,"MULTIPOINT (116.319236 39.984094, 116.32752433333334 39.978049666666664)" | ||
6,1,2008-10-23 10:32:53 00:00,2008-10-23 11:10:19 00:00,10.0,11.0,"MULTIPOINT (116.32752433333334 39.978049666666664, 116.30641350000002 40.013802)" | ||
7,1,2008-10-23 11:49:08 00:00,2008-10-23 11:49:48 00:00,11.0,12.0,"MULTIPOINT (116.30641350000002 40.013802, 116.30653043609027 40.01383060902254)" | ||
8,1,2008-10-23 23:43:46 00:00,2008-10-24 00:23:03 00:00,12.0,14.0,"MULTIPOINT (116.30653043609027 40.01383060902254, 116.32663666666667 39.977995)" | ||
9,1,2008-10-24 01:45:41 00:00,2008-10-24 02:02:46 00:00,14.0,15.0,"MULTIPOINT (116.32663666666667 39.977995, 116.3084012 39.981039200000005)" | ||
10,1,2008-10-24 02:28:19 00:00,2008-10-24 02:31:32 00:00,15.0,16.0,"MULTIPOINT (116.3084012 39.981039200000005, 116.31014576923077 39.98138838461539)" | ||
11,1,2008-10-24 03:16:35 00:00,2008-10-24 04:12:50 00:00,16.0,20.0,"MULTIPOINT (116.31014576923077 39.98138838461539, 116.32675288888888 39.97793)" | ||
12,1,2008-10-24 05:28:05 00:00,2008-10-24 05:39:50 00:00,20.0,21.0,"MULTIPOINT (116.32675288888888 39.97793, 116.31125442857143 39.982705714285714)" | ||
13,1,2008-10-24 06:08:42 00:00,2008-10-24 06:35:50 00:00,21.0,,"MULTIPOINT (116.31125442857143 39.982705714285714, 116.327063 39.977899)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters