0

Kepler.gl requires a special format for the trip layer to animate a path (https://docs.kepler.gl/docs/user-guides/c-types-of-layers/k-trip):

"In order to animate the path, the geoJSON data needs to contain LineString in its features' geometry, and the coordinates in the LineString need to have 4 elements in the format of [longitude, latitude, altitude, timestamp], with the last element being a timestamp"

However I do not find a way to get the timestamp into the LineString.

Assuming the following DataFrame df

Geometry Timestamp
POINT (548522.717 7353166.639) 1564184363
POINT (548435.456 7353365.835) 1564184363

I can get the Geometry data into a LineString using

line = LineString(df.geometry)

However I found no hint at how to add the timestamp...

0 Answers0