Examples: Creating Geometries
Learn how to create Points and LineStrings from text files.
We'll cover the following...
Overview
Press + to interact
"id","latitude","longitude","track_id","time"1,-10.9393413858164,-37.0627421097422,1,"2014-09-13 07:24:32"2,-10.939341385769,-37.0627421097809,1,"2014-09-13 07:24:37"3,-10.9393239478718,-37.0627645137212,1,"2014-09-13 07:24:42"4,-10.9392105616561,-37.0628430455445,1,"2014-09-13 07:24:47"5,-10.9389389789911,-37.0628785984113,1,"2014-09-13 07:24:53"6,-10.9385435911514,-37.0628386631358,1,"2014-09-13 07:24:59"7,-10.9383460576505,-37.0625875627021,1,"2014-09-13 07:25:04"8,-10.9384484455051,-37.0619998251528,1,"2014-09-13 07:25:10"9,-10.9386660746204,-37.0614989339645,1,"2014-09-13 07:25:15"10,-10.9389862284613,-37.0608192197261,1,"2014-09-13 07:25:21"11,-10.9393429131892,-37.0600866959415,1,"2014-09-13 07:25:27"12,-10.9396414360875,-37.0595030996298,1,"2014-09-13 07:25:32"13,-10.9398579141531,-37.0591213205945,1,"2014-09-13 07:25:38"14,-10.9400772902018,-37.0587290032396,1,"2014-09-13 07:25:43"
Spatializing trajectories data set
In the first example, we’ll spatialize the coordinates obtained from the GPS Trajectories data set available at the UCI (University of California, Irvine) Machine Learning Repository. The sample file is available in the code playground with the name go_track_trackspoints.csv
.
Now, ...