<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andriy Yaremenko on Medium]]></title>
        <description><![CDATA[Stories by Andriy Yaremenko on Medium]]></description>
        <link>https://medium.com/@andriyyaremenko?source=rss-82b2ee7e6c4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*T1Ykaf3tnaPBmyVJ</url>
            <title>Stories by Andriy Yaremenko on Medium</title>
            <link>https://medium.com/@andriyyaremenko?source=rss-82b2ee7e6c4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 02:25:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andriyyaremenko/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to animate Strava .gpx tracks in QGIS]]></title>
            <link>https://medium.com/geospatial-analytics/how-to-animate-strava-gpx-tracks-in-qgis-8a8ca6b58ebc?source=rss-82b2ee7e6c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a8ca6b58ebc</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[qgis]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[strava]]></category>
            <category><![CDATA[gis]]></category>
            <dc:creator><![CDATA[Andriy Yaremenko]]></dc:creator>
            <pubDate>Wed, 24 Nov 2021 15:56:37 GMT</pubDate>
            <atom:updated>2022-01-18T08:34:53.757Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNk-MnkFbOLMf6F1tgbcWg.gif" /></figure><h3>How to animate Strava .gpx tracks in QGIS</h3><p>In this short tutorial, I am gonna show how I animated my Strava tracks. As usual, my workflow might be not ideal. If you have any tips or comments, please <a href="https://twitter.com/AndriyYaremenko">reach out on Twitter</a>.</p><p>In nutshell, you need to create a series of maps via QGIS Atlas and then animate them with any convenient tool for you. This idea is not new. For example, check out this <a href="https://tjukanov.org/blog/2020/5/21/geospatial-animations-with-qgis-atlas">nice tutorial from Topi Tjukanov</a>.</p><p>Another thing that made this GIF so catchy — show all tracks, like they start at the same time. To achieve this, you need to calculate the time relatively to start for each record.</p><p>It might be done for any data, but in this particular case, I`ll use my .gpx tracks from Strava. You are free to apply this idea to whatever you want. GIS is creative stuff =)</p><h3>Andriy Yaremenko on Twitter: &quot;#30DayMapChallenge Day 20 - Movement I&#39;ve been working on the visualization of some tracks from Strava.It&#39;s not exactly a map, but it&#39;s about movement and I like the result. pic.twitter.com/a2dN45Qn0S / Twitter&quot;</h3><p>30DayMapChallenge Day 20 - Movement I&#39;ve been working on the visualization of some tracks from Strava.It&#39;s not exactly a map, but it&#39;s about movement and I like the result. pic.twitter.com/a2dN45Qn0S</p><h4>1. Get your data</h4><p>To download data from Strava please follow <a href="https://support.strava.com/hc/en-us/articles/216918437-Exporting-your-Data-and-Bulk-Export">this instruction</a>.</p><h4>2. Import data to QGIS with the “Batch GSP Importer” plugin.</h4><p>If you don`t have this plugin — go to Plugins —&gt; Manage and Install Plugins, and search for the mentioned one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*L6sniwBWV3n0-gn98N7V-A.png" /></figure><p>In the plugin dialog window browse to the folder with your .gpx files. For Geometry type select point and hit Import button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*3QvOBDS9u6cvLtRD4zOcwA.png" /></figure><p>After the import, you`ll have a temporary merged point vector layer that contains information from all your .gpx tracks. - “id”, “elevation”, “capture_time”, and “file_name”. Strava app recording one point each 1–2 seconds in the format yyyy-mm-dd T hh:mm:ssThe most important here “capture_time” column since we gonna extract the “time_difference” from it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*HV_wfSz3hyZuUXtIdo4jIQ.png" /></figure><p>Save this layer and if you want to, get rid of empty columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c24dKgAJ1QAemBGS3uYvQw.gif" /></figure><h4>3. Add date and time_difference columns</h4><p>To show all tracks like its starts at the same time, we need to calculate the relative time difference for each point in the track. Like how much time has passed since the beginning of the record(track). <br>For this, we can use a field calculator with the expression below. Don`t forget to toggle editing.</p><pre>second(  <br> age<br> (to_datetime(&quot;capture_time&quot;), to_datetime (minimum(&quot;capture_time&quot;, &quot;file_name&quot;))<br>  )<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*jD9Dh_yQRUW-1FZiRaattQ.png" /></figure><p>Let’s break it down. But I strongly advise skipping the next paragraph as I am really bad at explaining this.</p><blockquote>Function <em>age</em> returns the difference between two dates or datetimes. <br>The first argument representing the later datetime, the second one representing the earlier datetime. As we want this result in seconds we wrapping <em>age</em> into <em>second</em> function.<br>For the first argument, we just use <em>to_datetime</em> function to convert a string into a datetime object.<br>For the second argument, we need to find the most earlier/the first point in each track. For this, we use function <em>minimum</em> with two arguments: “capture_time” — for the field to aggregate and “file_name” — for the field to group by (since we compare each point to the earliest point in the track, not to the earliest point in the entire file that contains multiply tracks).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHNgXDrx-ohntxIOsNNqCQ.png" /></figure><p>After calculating, we have a column (in my case it`s called “time_difference”) with the number of seconds passed from the beginning of the track record. Using this column we can show all tracks like they start at the same time.</p><h4>4. Create a coverage layer for the atlas.</h4><p>As I mentioned above, I used QGIS Atlas to generate images for GIF. When you create the Atlas, you need a “coverage layer”, something to create and manage atlases pages. <br>It`s possible to use a copy of the point layer with tracks info for this, but it will generate as many pages as points in the longest track. In my case, it was something around 7000 points. Generating and animating so many maps may take a lot of time. So, I just create a .csv file with the column that contains numbers multiplied by 20 in the range from -20 (to have one empty map) to maximum(time_difference)+few extra rows(to cover all points). You can use any spreadsheet software for this (LibreOffice, MS Excel, etc.). <br>And of course, you can change the time interval from 20 to whatever suits your case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*ZTjTi6zydJj8HdFbX62FUA.gif" /></figure><p>After saving the .csv file, add it to the QGIS as a table without geometry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*La8Jd2sWj6-Q-2b7Q7zAMQ.png" /></figure><h4>5. Create the atlas</h4><p>Let`s go to the Print composer. Create a page in a size that you want and add a map to it. After, generate an Atlas using our table with numbers multiplied by 20 as coverage layer. Turn on Atlas preview and select any page, not from the beginning of the list (I`ll explain why later). Now we can start styling the point layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9uNdB8HCiT5ea8Wl2A-Sw.gif" /></figure><h4>6. Styling</h4><p>Let’s say we want to create a visual effect where newly added points have another color. It helps to track changes and make visualization more interesting.<br>For this purpose, we can use Rule Based symbology. In this particular case, I created 3 types of symbology (and that’s why we need to have Atlas, not on the first page).<br>For the first ten points:</p><pre>(<a href="http://twitter.com/atlas_pagename">@atlas_pagename</a> - 10) &lt; &quot;time_difference&quot; <br> and <br> &quot;time_difference&quot; &lt;= <a href="http://twitter.com/atlas_pagename">@atlas_pagename</a></pre><p>For the second ten points:</p><pre>(<a href="http://twitter.com/atlas_pagename">@atlas_pagename</a> - 20) &lt; &quot;time_difference&quot; <br> and <br> &quot;time_difference&quot; &lt;= (<a href="http://twitter.com/atlas_pagename">@atlas_pagename</a> -10)</pre><p>For the rest of the points:</p><pre>&quot;time_difference&quot; &lt;= (<a href="http://twitter.com/atlas_pagename">@atlas_pagename</a>-20)</pre><p>I set different opacity and colors for groups. The first one should be the most visible. The second one might be more transparent, and the rest of the points might be almost transparent. You can experiment with number of the groups, colors, opacity, size, and all other settings looking for what works best for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*p97VMZY2-NIlf2p0r2SzCQ.png" /></figure><p>Also, apply Symbol levels. All groups should be arranged sequentially, with the first on the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*tQf5kwCViIKOdi6UZAJXKA.png" /></figure><h4>7. Export</h4><p>Now we can go back to Print Composer. Set suitable scale and extent. If you want, change the background color. <br>Also, we can add “stopwatch” to give an understanding of the time. <br>For this, add a label with followed expression.</p><pre>format_date( (make_time(0,0,0)+</pre><pre>make_interval(seconds:=@atlas_pagename)), &#39;HH:mm:ss&#39;)</pre><p>When all is done, click “Export Atlas as Images” and select a folder to save the output. Depending on the number of pages and your computer performance, it might take some time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ziDJTCAqZA2_euGaevjOA.png" /></figure><h4>8. Animate</h4><p>You can create GIF with any convenient tool for you like online services, FFmpeg, or GIMP. For this case I prefer GIMP. It`s an open-source raster graphics editor. You can learn about it more and <a href="https://www.gimp.org/downloads/">download it here</a>. <br>In GIMP go to the Files -&gt; Open Image as Layers and add all your maps. <br>Then go to Filters -&gt; Animation -&gt; Optimize (for GIF). <br>After optimization, go to File -&gt; Export as and save it as .gif.<br>In the dialog window choose parameters for output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*Hcha8hGFkBI6mCoNOiKOpg.png" /></figure><p>Congrats on your visualization!<br>P.S. Thanks to Reddit user <a href="https://www.reddit.com/user/matos4df/">matos4df</a> for pointing to a typo in a filter expression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4_bl-WwA584whgqB6T5lA.gif" /><figcaption>For some reasons Medium drop FPS =/</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JqUKxiUXklpcYyfYv2N9Mg.gif" /><figcaption>For some reasons Medium drop FPS =/</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AI5LAGJmOPMDeOaOpFG0FA.png" /><figcaption>Image for thumbnail</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a8ca6b58ebc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geospatial-analytics/how-to-animate-strava-gpx-tracks-in-qgis-8a8ca6b58ebc">How to animate Strava .gpx tracks in QGIS</a> was originally published in <a href="https://medium.com/geospatial-analytics">Geospatial Analytics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create Lego Map Style in QGIS]]></title>
            <link>https://medium.com/@andriyyaremenko/how-to-create-lego-map-style-in-qgis-a8ecf42d02ef?source=rss-82b2ee7e6c4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8ecf42d02ef</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[qgis]]></category>
            <category><![CDATA[cartography]]></category>
            <category><![CDATA[gis]]></category>
            <dc:creator><![CDATA[Andriy Yaremenko]]></dc:creator>
            <pubDate>Fri, 25 Oct 2019 22:22:46 GMT</pubDate>
            <atom:updated>2020-05-11T17:20:34.684Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uj1UG7pbWkvaFscSTZzxmw.png" /></figure><p><strong>UPD 11.05.2020<br>The workflow described in this tutorial is not ideal. <br>I did it quick and dirty, just to share an idea.<br>But people still use it. So, I decided to improve this a little bit.<br>Thanks for the comments </strong><a href="https://medium.com/u/e82a5586a3fb"><strong>Timmy</strong></a><strong>, </strong><a href="https://medium.com/u/15abfd5556b"><strong>Vasilis Samaritakis</strong></a><strong>, and all other people that reached me out.</strong></p><p>Last few months I saw some maps in Lego Style. It’s looking very interesting and catching but unfortunately, all the tutorials that I able to find are for ArcPro.</p><p>So, I decided to change this inequity and trying to create a similar map in QGIS. Yesterday I posted on Twitter a result of my attempt and it seems people liked this (at least one hundred of them).</p><h3>Andriy Yaremenko on Twitter</h3><p>Lego map style in #QGIS Why when I googled &quot;lego map style&quot; I see only #ArcPro tutorials. It`s possible in QGIS too. #map #gis #cartography</p><p>So, here very brief tutorial for creating a Lego-style map in QGIS.</p><blockquote><strong>Disclaimer! I used only QGIS. This workflow isn`t ideal. The main point is to show various ways of applying QGIS functions for map design. If you have any idea on how to improve workflow, I`ll be glad to hear it. Sharing knowledge is a thing that makes a difference.</strong></blockquote><p><strong>00. Create a regular grid with data</strong></p><p>The first thing that you need is a regular grid with data that you will visualize. To create grid go to Vector → Research Tools → Create Grid or just search in Processing Toolbox. The size of the cell depends on the map scale, so just play around with it to define the better size. After, you should add data to cells. The easier way to do it is using functions “Join Attributes by location” (to get data from vector source) or “Zonal statistics” (for raster data sources). In my case, I used the second one to get data about elevation from DEM.</p><p><strong>01. Create a polygon centroids</strong></p><p>Centroid from polygon function can be found in Vector → Geometry Tools →Centroids, or in Processing Toolbox.</p><p><strong><em>UPD: Another option is to select Symbol -&gt; Change.. in Layer Styling panel and add Centroid Fill geometry.</em></strong></p><p><strong>02. Set polygon and point styles in the same way</strong></p><p>Set the identic style for point and polygon layers — the same variable to classify by, equal symbol type (categorized/graduated) and color scheme, the same data classification method (Jenks, Equal intervals, etc.) and numbers of the range. Adjust the size of the point so it looks like Lego bricks.</p><blockquote>Please notice, that the size of the point may be displayed differently in the different scales. That why set needed scale before experimenting with point size.</blockquote><p><strong><em>UPD: for setting centroid size use “Meters at Scale” units, then your style will look the same on all scales.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48hKqLVrjpdfrZ1-OkO4Og.png" /></figure><p><strong>03. Add shadow</strong></p><p>For point layer — duplicate it, change to Single symbol and fill with some kind of gray color (it`s shadow!) Then offset it by x and y-axis on some little value. It`s should look like a shadow. Just experiment with this.</p><p><strong><em>UPD: In case you added Centroid Fill geometry to the polygon layer, use “Draw effects” options in Layer Styling panel to add shadow (or any other effect) for this element. It`s even easier and looks very nice!</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tnu3xbAU1Mf_SR8iyl1N_A.png" /></figure><p>For the polygon layer, it`s a little bit complicated. I added a sub symbol for each range, fill it in gray color, and made little offset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*0Ft8flbY9ddpQGCvSi475Q.png" /></figure><p>Then play with Symbol Levels to make its view more realistic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*j1VoyK45kB-kRlT23PtKFQ.png" /></figure><p>Voila, the map is ready!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H71a9z2SlDimMa3cPmZb-Q.jpeg" /></figure><p>In case my tutorial was not very clear, <a href="http://bit.ly/QGIS_lego_project">here you can download </a>this QGIS project and explore it more detailed.</p><p>If you wanna give feedback, share some ideas or find more useless maps — go to my <a href="https://twitter.com/AndriyYaremenko">twitter (AndriyYaremenko</a>).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8ecf42d02ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>