Technical Post: Generate test cases for geojson rendering

We render lines on the map in Gaia GPS, like when you record or import a track. It’s a tricky problem to do this perfectly, where the tracks always look smooth and precise.

Recently, I wanted to generate tests cases that would clarify bugs in our line rendering, to make it easy to isolate and remove bugs.

This Python script generate GeoJson spirals and sawtooth waves, which I used to expose bugs in our rendering.


2 Sawtooth shapes

This entry was posted in Programming on by .

About Jesse Crocker

Jesse combines an equal love of the outdoors, snow, and computers. He developed large swaths of both the Gaia GPS apps, map servers, and infrastructure, and is a partner in the business. Jesse owns and operates an organic farm in Montana, where he lives with his family. He spends as much time as possible hiking and backcountry skiing. He has thru-hiked the Pacific Crest Trail, and speed-skied the John Muir Trail. Prior to joining Gaia GPS, Jesse worked as a ski patroller in the sierras, doing avalanche control. He also developed software and data to help conserve buffalo.