Where do cats go when they’re outside all day and night? What do they do? How do they entertain themselves? Is there a secret cat meeting place in every major city? When Safers found out about Cat Tracker, we couldn’t resist. This science project is dedicated to tracking your cat’s GPS locations to find out exactly where little Catniss goes on her midnight prowls.
FME Can Haz Cat Tracking
The cat tracker data comes from Movebank, a free online repository of animal tracking data. The GPS datasets are provided in JSON format, which Aaron was able to download and extract using a few FME transformers. Flattening the JSON creates attributes, including latitude and longitude, which the FME Workspace then geocodes, transforming the data into spatial features.
Creating a convex hull around the points gets the cat’s “prowling area”. You might notice a few outlying points in the dataset, where the cat seems to travel a huge distance quite suddenly. Is this a burst of speed and energy? A car ride to the vet? Kitty teleportation? More likely, it’s just a GPS anomaly, and these can easily be removed with data validation. Next, the cats are ranked based on the size of their travel areas. The locations are then sent through an algorithm that calculates each cat’s average velocity using the distance between the points and the difference in their timestamps. This is also sorted and ranked by average. Finally, the top speed for each cat is determined, and the output sent through a few KML styling transformers.
Try it yourself
Download the workspace and output data, and be sure to open the KML file in Google Earth for the full experience. Trust me, you’re going to want to browse this data.
If you’ve transformed any weird and interesting data with FME, I’d love to hear about it. Send me a note or leave a comment!
Tiana WarnerTiana is a Senior Marketing Specialist at Safe Software. Her background in computer programming and creative hobbies led her to be one of the main producers of creative content for Safe Software. Tiana spends her free time writing fantasy novels, riding her horse, and exploring nature with her rescue pup, Joey.