{"id":157,"date":"2015-05-01T11:25:24","date_gmt":"2015-05-01T11:25:24","guid":{"rendered":"http:\/\/transnationalhistory.net\/mapping\/?page_id=157"},"modified":"2023-08-29T15:13:38","modified_gmt":"2023-08-29T15:13:38","slug":"depicting-routes","status":"publish","type":"page","link":"https:\/\/transnationalhistory.net\/mapping\/tutorials\/depicting-routes\/","title":{"rendered":"Depicting Routes &#038; Itineraries"},"content":{"rendered":"<p style=\"text-align: right;\"><em><strong>Tutorial 8<\/strong><\/em><\/p>\n<p>&nbsp;<\/p>\n<p>With a\u00a0rising\u00a0interest in networks, flows and transnational interactions, historians will increasingly use maps to depict the circulation of goods, ideas, and people. This tutorial will show you how to show routes and itineraries on a QGIS map. There are many ways to do it, here&#8217;s our version. The example we will use is Percy and Mary Shelley&#8217;s journey from London to Switzerland in 1814, described in their travelogue\u00a0<em>History of a Six Weeks Tour\u00a0<\/em>(London, Hookham, 1817).<\/p>\n<p><strong>STEP 1: BUILD A CSV LIST WITH THE COMPLETE ITINERARY<\/strong><\/p>\n<p>Firstly I am building a CSV list which is made of all the points crossed by the Shelleys. The CSV file looks like this.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-csv-shelley.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-384\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-csv-shelley.jpg\" alt=\"8 csv shelley\" width=\"482\" height=\"291\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-csv-shelley.jpg 482w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-csv-shelley-300x181.jpg 300w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/a><\/p>\n<p>My CSV is composed of the following fields:<\/p>\n<ul>\n<li><strong>TravellerID<\/strong>: you can opt for an ID number (1,2,3&#8230;) or a name. In this case we only have Shelley, but this will allow us to connect all the &#8220;Shelley&#8221; points together.<\/li>\n<li><strong>Place and Date<\/strong>: these may of course be useful as labels or as additional information in the attribute table. As you can see, I was unable to get all the dates, as the travelogue tends to be unclear at times. Don&#8217;t forget to put an extra comma to show that your field is empty.<\/li>\n<li><strong>Order<\/strong>: since we won&#8217;t be able to sort the itinerary by date, we need a simple way to classify our points in chronological order. A simple ranking from 1 upwards should work perfectly.<\/li>\n<li><strong>Lat\/Long<\/strong>: of course, like any point we have depicted in previous tutorials, you will need coordinates to precisely locate your points. These weren&#8217;t of course in Shelley&#8217;s travel account: a search on Google Maps allowed me to get the coordinates for each town.<\/li>\n<li><strong>Status<\/strong>: this might be relevant for later. At the moment, all points are known as &#8220;place&#8221;, since they are places that the Shelleys crossed during their journey.<\/li>\n<\/ul>\n<p>Once added to QGIS, all your points are disconnected.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-disconnected-points.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-385\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-disconnected-points.jpg\" alt=\"8 disconnected points\" width=\"672\" height=\"407\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-disconnected-points.jpg 672w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-disconnected-points-300x182.jpg 300w\" sizes=\"auto, (max-width: 672px) 100vw, 672px\" \/><\/a><\/p>\n<p><strong>STEP 2: CONNECTING YOUR DOTS WITH POINTS2ONE<\/strong><\/p>\n<p>As stated previously, there are many ways to draw itineraries. Ours requires a plugin called Points2One. Open the Plugin Manager (<strong>Plugins &gt; Manage and Install Plugins<\/strong>), look for\u00a0<strong>Points2One<\/strong> and install it.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/04\/3-save-layer-as.jpg\"><br \/>\n<\/a> <a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-plugins.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-386\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-plugins.jpg\" alt=\"8 plugins\" width=\"577\" height=\"200\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-plugins.jpg 577w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-plugins-300x104.jpg 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Once installed, open it via the\u00a0<strong>Plugins<\/strong> menu or by finding Points2One&#8217;s icon <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-387 size-full\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-points2one-icon.jpg\" alt=\"8 points2one icon\" width=\"32\" height=\"34\" \/>\u00a0in your toolbar. \u00a0You should complete the Plugin as shown below.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-points2one.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-388 alignright\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-points2one.jpg\" alt=\"8 points2one\" width=\"365\" height=\"507\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-points2one.jpg 365w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-points2one-216x300.jpg 216w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/a><strong>Input vector layer<\/strong>: the layer picturing your different points.<\/p>\n<p><strong>Create lines<\/strong>: here we only want one line rather than\u00a0a polygon. If you want your last point to be linked to the first one, tick\u00a0<strong>Closed<\/strong>. This itinerary will only go as far as Lucerne but the Shelleys did continue their tour through the Alps afterwards, therefore I will leave that box unticked.<\/p>\n<p><strong>Group features by TravellerID<\/strong>: this will allow the plugin to understand which points should be linked together. All the Shelley points will be, but this means that you can add more than one traveller&#8217;s itinerary in your CSV.<\/p>\n<p><strong>Sort vertices by Order<\/strong>: thanks to the Order field in our CSV list, the plugin will understand that it needs to connect 1 with 2, 2 with 3, and so on.<\/p>\n<p>Do not forget to select a name for your new layer, and tick\u00a0<strong>Add result to canvas<\/strong> if you wish to see the result directly.<\/p>\n<p>Finally, click\u00a0<strong>OK.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The final result, after changing the style of the line, looks like this.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-connected-points.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-389 size-full\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-connected-points-e1433507491242.jpg\" alt=\"8 connected points\" width=\"733\" height=\"448\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-connected-points-e1433507491242.jpg 733w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-connected-points-e1433507491242-300x183.jpg 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/a><\/p>\n<p><strong>STEP 3: THE ITINERARY CROSSES A LAKE!?<\/strong><\/p>\n<p>Of course, the route between each dot is a straight one, which is not very accurate. It might not be an issue at all for the general comprehension or accuracy of your map, but there might still be some adjustments to do.<\/p>\n<p>By adding natural elements to this map I realised that the final stretch of the Shelleys&#8217; journey looks like it is crossing a lake.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-route-over-lake.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-390\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-route-over-lake.jpg\" alt=\"8 route over lake\" width=\"700\" height=\"181\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-route-over-lake.jpg 700w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-route-over-lake-300x78.jpg 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>In order to avoid this we would like to add points that will not be considered as visited towns, but which Points2One will still connect to the rest of the itinerary. I am therefore adding two points to my CSV list.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-edited-csv1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-392 size-full\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-edited-csv1.jpg\" alt=\"\" width=\"455\" height=\"83\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-edited-csv1.jpg 455w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-edited-csv1-300x55.jpg 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/a><\/p>\n<p>As you can see, I have added the status &#8216;through&#8217; to those points, instead of &#8216;place&#8217;, because I don&#8217;t want my map to display those points &#8211; I will be able to filter that later. In the meantime, I am repeating the process in order to take my edits into account.\u00a0<strong>Note: when this tutorial was written (June 2015) there was no &#8220;reload layer&#8221; function in QGIS. Forums show that many users would like that option to be added to the next version of QGIS, which would allow us to change our map quicker.<\/strong><\/p>\n<p>After adding the CSV points and drawing the itinerary line again, our map looks like this.<a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-edited-csv1.jpg\"><br \/>\n<\/a> <a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-map-after-detour.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-393\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-map-after-detour.jpg\" alt=\"8 map after detour\" width=\"690\" height=\"358\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-map-after-detour.jpg 700w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-map-after-detour-300x156.jpg 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/a><\/p>\n<p><strong>STEP 4: FILTERING POINTS AND ADDING LABELS<\/strong><\/p>\n<p>Finally, we want to do two things: hiding\u00a0the two points that we created, since they were not feature in Shelley&#8217;s diary, and adding labels for the towns and cities crossed.<\/p>\n<p>In order to hide the two &#8216;detour points&#8217;, open the point vector layer&#8217;s\u00a0<strong>Properties<\/strong>. Under <strong>General<\/strong>, click on\u00a0<strong>Query Builder<\/strong>. Now that you know how to <a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/performing-queries\/\">perform queries<\/a>, you know that we will filter the\u00a0<strong>Status<\/strong> field so that only &#8216;Places&#8217; are displayed.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-query-status-place.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-394 aligncenter\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-query-status-place.jpg\" alt=\"8 query status place\" width=\"186\" height=\"61\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>As expected, the points have disappeared but they are still part of the drawn itinerary.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-lake-neuch.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-395\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-lake-neuch.jpg\" alt=\"8 lake neuch\" width=\"365\" height=\"160\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-lake-neuch.jpg 365w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-lake-neuch-300x132.jpg 300w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/a><\/p>\n<p>I am then adding labels for my dots.\u00a0If you want to hide some of the small towns, you can always change the &#8216;Status&#8217; of some of your points in your CSV (from &#8216;place&#8217; to &#8216;through&#8217;).<\/p>\n<p>The final result (before adding other layers such as relief, political borders, etc), should look like this.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-final-map-Shelley.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-397\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-final-map-Shelley.jpg\" alt=\"8 final map Shelley\" width=\"700\" height=\"465\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-final-map-Shelley.jpg 700w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/8-final-map-Shelley-300x199.jpg 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Last update: 8 June 2015 on QGIS 2.8.1 Wien.<\/p>\n<p style=\"text-align: right;\"><a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/projections\/\">Next tutorial:<\/a><br \/>\n<strong><a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/projections\/\">Changing Projections<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial 8 &nbsp; With a\u00a0rising\u00a0interest in networks, flows and transnational interactions, historians will increasingly use maps to depict the circulation of goods, ideas, and people. This tutorial will show you how to show routes and itineraries on a QGIS map. There are many ways to do it, here&#8217;s our version. The example we will use [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":8,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-157","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":2,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/157\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/157\/revisions\/398"}],"up":[{"embeddable":true,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/8"}],"wp:attachment":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/media?parent=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}