{"id":1402,"date":"2016-12-02T17:31:54","date_gmt":"2016-12-02T17:31:54","guid":{"rendered":"http:\/\/www.meiotic.co.uk\/my\/?p=1402"},"modified":"2016-12-03T01:31:24","modified_gmt":"2016-12-03T01:31:24","slug":"animating-journeys-maps","status":"publish","type":"post","link":"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/","title":{"rendered":"Animating Journeys as Maps"},"content":{"rendered":"<p><script>document.getElementById('menu-item-102').className += \" current-menu-item current_page_item\";<\/script><br \/>\nOver a few years going on <a href=\"..\/..\/wanders\" target=\"_blank\">Wednesday Wanders<\/a>, I&#8217;ve collated quite a lot of data on walking routes in and around Edinburgh. In some cases this is time-stamped GPS data taken from the walk, otherwise it is a route drawn on MapBox after the event. I wanted to explore the <a href=\"https:\/\/plugins.qgis.org\/plugins\/timemanager\/\" target=\"_blank\">TimeManager plugin<\/a> to try and animate those GPS tracks, but I didn&#8217;t have immediate success. As this was just a quick project, I decided to use all the data I have and ignore the time-stamp element, just animate each route at a set pace. But here&#8217;s an example of what the TimeManager plugin can do:<\/p>\n<div style=\"text-align:center;\"><iframe loading=\"lazy\" width=\"560\" height=\"315\" align=\"center\" src=\"https:\/\/www.youtube.com\/embed\/l29bOvGutBw\" frameborder=\"0\" allowfullscreen><\/iframe><\/div>\n<p><\/p>\n<p>This is where the <a href=\"https:\/\/plugins.qgis.org\/plugins\/mmqgis\/\" target=\"_blank\">mmqgis plugin<\/a> comes in. It has a nice &#8216;animate lines&#8217; function, which would do exactly what I wanted. Then it was a case of setting up the styles for the routes themselves as well as a background map. This is where I hit a slight issue &#8211; using the <a href=\"https:\/\/plugins.qgis.org\/plugins\/openlayers_plugin\/\" target=\"_blank\">OpenLayers plugin<\/a> to add my preferred background map (in this case, Stamen Toner), I discovered mmqgis would now stall as soon as you asked it to animate the lines. This was true with all maps in the OpenLayers plugin &#8211; frustrating.<\/p>\n<p>This could be got round by using the <a href=\"https:\/\/plugins.qgis.org\/plugins\/qosm\/\" target=\"_blank\">QOSM plugin<\/a>, but that limits you to the basic OSM map set, no Stamen Toner here. And as this little project is mostly about style, I want to use my preferred map. So the only option is to export the Stamen background as a tif and georectify it, but this will bring in some spatial inaccuracy as well as a decrease in definition:<\/p>\n<div style=\"margin:0 auto; text-align:center; width:100%; max-width:773px;\"><img decoding=\"async\" style=\"max-width: 773px; width: 100%;\" src=\"gifs\/stamen_switch.gif\"><\/div>\n<p><\/p>\n<p>That&#8217;s not a perfect result, but I intend to darken the background so these issues should fade away to some extent. By adding a black polygon to the the map view and setting a transparency of 15%, we&#8217;ll get a nice background and hide away the georeferncing problems:<\/p>\n<div style=\"margin:0 auto; text-align:center; width:100%; max-width:773px;\"><img decoding=\"async\" style=\"max-width: 773px; width: 100%;\" src=\"gifs\/wanders_animated.gif\"><\/div>\n<p><\/p>\n<p>There we have it. A nice result and a new way to explore the data that fits with the context. I&#8217;ll definitely explore the TimeManager plugin more and in the future, but might take a bit more time.. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over a few years going on Wednesday Wanders, I&#8217;ve collated quite a lot of data on walking routes in and around Edinburgh. In some cases this is time-stamped GPS data taken from the walk, otherwise<\/p>\n","protected":false},"author":1,"featured_media":1403,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[8,6,9,73,93],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.7.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Animating Journeys as Maps | *meiotic*<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Animating Journeys as Maps | *meiotic*\" \/>\n<meta property=\"og:description\" content=\"Over a few years going on Wednesday Wanders, I&#8217;ve collated quite a lot of data on walking routes in and around Edinburgh. In some cases this is time-stamped GPS data taken from the walk, otherwise\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/\" \/>\n<meta property=\"og:site_name\" content=\"*meiotic*\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-02T17:31:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-12-03T01:31:24+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.meiotic.co.uk\/my\/wp-content\/uploads\/2016\/12\/wanders_still.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1052\" \/>\n\t<meta property=\"og:image:height\" content=\"682\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"meiotic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ScienceAndMaps\" \/>\n<meta name=\"twitter:site\" content=\"@ScienceAndMaps\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"meiotic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/\",\"url\":\"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/\",\"name\":\"Animating Journeys as Maps | *meiotic*\",\"isPartOf\":{\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/#website\"},\"datePublished\":\"2016-12-02T17:31:54+00:00\",\"dateModified\":\"2016-12-03T01:31:24+00:00\",\"author\":{\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/#\/schema\/person\/1995e1cecd67d2ff1e6a638aa331d032\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.meiotic.co.uk\/my\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Animating Journeys as Maps\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/#website\",\"url\":\"http:\/\/www.meiotic.co.uk\/my\/\",\"name\":\"*meiotic*\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.meiotic.co.uk\/my\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/#\/schema\/person\/1995e1cecd67d2ff1e6a638aa331d032\",\"name\":\"meiotic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"http:\/\/www.meiotic.co.uk\/my\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/cacd48b532259fb621d7acf4cc462290?s=96&d=retro&r=r\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/cacd48b532259fb621d7acf4cc462290?s=96&d=retro&r=r\",\"caption\":\"meiotic\"},\"sameAs\":[\"http:\/\/meiotic.co.uk\",\"https:\/\/twitter.com\/ScienceAndMaps\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Animating Journeys as Maps | *meiotic*","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_GB","og_type":"article","og_title":"Animating Journeys as Maps | *meiotic*","og_description":"Over a few years going on Wednesday Wanders, I&#8217;ve collated quite a lot of data on walking routes in and around Edinburgh. In some cases this is time-stamped GPS data taken from the walk, otherwise","og_url":"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/","og_site_name":"*meiotic*","article_published_time":"2016-12-02T17:31:54+00:00","article_modified_time":"2016-12-03T01:31:24+00:00","og_image":[{"width":1052,"height":682,"url":"http:\/\/www.meiotic.co.uk\/my\/wp-content\/uploads\/2016\/12\/wanders_still.jpg","type":"image\/jpeg"}],"author":"meiotic","twitter_card":"summary_large_image","twitter_creator":"@ScienceAndMaps","twitter_site":"@ScienceAndMaps","twitter_misc":{"Written by":"meiotic","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/","url":"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/","name":"Animating Journeys as Maps | *meiotic*","isPartOf":{"@id":"http:\/\/www.meiotic.co.uk\/my\/#website"},"datePublished":"2016-12-02T17:31:54+00:00","dateModified":"2016-12-03T01:31:24+00:00","author":{"@id":"http:\/\/www.meiotic.co.uk\/my\/#\/schema\/person\/1995e1cecd67d2ff1e6a638aa331d032"},"breadcrumb":{"@id":"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.meiotic.co.uk\/my\/research\/animating-journeys\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.meiotic.co.uk\/my\/"},{"@type":"ListItem","position":2,"name":"Animating Journeys as Maps"}]},{"@type":"WebSite","@id":"http:\/\/www.meiotic.co.uk\/my\/#website","url":"http:\/\/www.meiotic.co.uk\/my\/","name":"*meiotic*","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.meiotic.co.uk\/my\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Person","@id":"http:\/\/www.meiotic.co.uk\/my\/#\/schema\/person\/1995e1cecd67d2ff1e6a638aa331d032","name":"meiotic","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"http:\/\/www.meiotic.co.uk\/my\/#\/schema\/person\/image\/","url":"http:\/\/0.gravatar.com\/avatar\/cacd48b532259fb621d7acf4cc462290?s=96&d=retro&r=r","contentUrl":"http:\/\/0.gravatar.com\/avatar\/cacd48b532259fb621d7acf4cc462290?s=96&d=retro&r=r","caption":"meiotic"},"sameAs":["http:\/\/meiotic.co.uk","https:\/\/twitter.com\/ScienceAndMaps"]}]}},"_links":{"self":[{"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/posts\/1402"}],"collection":[{"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/comments?post=1402"}],"version-history":[{"count":16,"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/posts\/1402\/revisions"}],"predecessor-version":[{"id":1420,"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/posts\/1402\/revisions\/1420"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/media\/1403"}],"wp:attachment":[{"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/media?parent=1402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/categories?post=1402"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.meiotic.co.uk\/my\/wp-json\/wp\/v2\/tags?post=1402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}