{"id":204,"date":"2015-05-18T13:42:02","date_gmt":"2015-05-18T13:42:02","guid":{"rendered":"http:\/\/transnationalhistory.net\/mapping\/?page_id=204"},"modified":"2023-08-29T15:13:38","modified_gmt":"2023-08-29T15:13:38","slug":"advanced","status":"publish","type":"page","link":"https:\/\/transnationalhistory.net\/mapping\/tutorials\/baselayer\/advanced\/","title":{"rendered":"One Step Further: Smoother Coastlines &#038; Raster Layers"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\"><strong>ONE STEP FURTHER #1: Smoother Coastlines<\/strong><\/span><\/p>\n<p>As you saw in the first tutorial, some areas of the coastline may look a little bit messy, due to the geographic complexity of the region. That is the case, for instance, of the south of Chile or the fjords of Norway. There is a way to simplify the coastlines.<\/p>\n<p>Let&#8217;s take the example of Northern Europe, including Norway and its numerous fjords.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-simplifying.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-211\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-simplifying.jpg\" alt=\"1 norway before simplifying\" width=\"580\" height=\"334\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-simplifying.jpg 580w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-simplifying-300x173.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>In order to obtain a simplified rendition of the western coast, let&#8217;s open the <strong>Simplify Geometries<\/strong> tool that you can find under\u00a0<strong>Vector<\/strong> then\u00a0<strong>Geometry Tools<\/strong>.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-212\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries.jpg\" alt=\"1 simplify geometries\" width=\"395\" height=\"291\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries.jpg 395w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries-300x221.jpg 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/a><\/p>\n<p>A new window then opens. Make sure you are selecting the right layer to modify. You may want to tick the\u00a0<strong>Save to new file<\/strong>\u00a0box or you might lose the original layer.<\/p>\n<p>The most important option is the\u00a0<strong>Simplify tolerance<\/strong> scale. This depends on the scale your map will be at. If you want to work exclusively on Norway, but you think there is still too much detail, you may want to choose a very mild scale (0.01 for instance). If you are working globally and you only want to get rid of the &#8216;messy&#8217; aspects of certain parts of the world, opt for a bigger ratio (0.1). Please note that anything above 0.5 will have a very significant impact on your map.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries-box.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-213\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries-box.jpg\" alt=\"\" width=\"418\" height=\"305\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries-box.jpg 418w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-simplify-geometries-box-300x219.jpg 300w\" sizes=\"auto, (max-width: 418px) 100vw, 418px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I have opted for 0.1. After clicking\u00a0<strong>OK<\/strong> the result is deplayed along side many red dots.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-finalising.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-215\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-finalising.jpg\" alt=\"1 norway before finalising\" width=\"760\" height=\"445\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-finalising.jpg 760w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-before-finalising-300x176.jpg 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-92\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/04\/3-toggle-editing.jpg\" alt=\"\" width=\"113\" height=\"70\" \/>These are the angles of the layer that you can keep editing (<a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/shapefiles\/\">we will see this in a later tutorial<\/a>). Click on the\u00a0<strong>Toggle editing<\/strong> button if done, and confirm that you wish to save the layer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-279\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-after-simplify.jpg\" alt=\"1 norway after simplify\" width=\"474\" height=\"314\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-after-simplify.jpg 474w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-after-simplify-300x199.jpg 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><br \/>\nThis option simplifies your layer: it reduces the number of lines, and therefore the result may not be satisfactory to you, as it looks too rough and not round enough. You can use a second option (either combine it with the first one or use it on its own) called the <strong>Generalizer<\/strong>.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-plugins.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-281\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-plugins.jpg\" alt=\"1 plugins\" width=\"240\" height=\"106\" \/><\/a>Before being able to use it, you need to install the plugin into QGIS. To do so, go to\u00a0<strong>Plugins<\/strong> and\u00a0<strong>Manage and Install Plugins<\/strong>. Search for\u00a0<strong>Generalizer<\/strong> and make sure the box is ticked and the plugin installed. Then click again on\u00a0<strong>Plugins<\/strong> and choose\u00a0<strong>Generalizer<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p>The Generalizer is composed of many algorithms which will all be very useful to complete a certain task. <strong>Remove small objects<\/strong>, for instance, will get rid of tiny islands so your map looks tidier.\u00a0No matter what algorithm you are choosing, <strong>make sure you select the right layer<\/strong>. Once you click <strong>OK<\/strong>, a new window will ask for a CRS. Pick the same as your original layer, most commonly <strong>WGS 84<\/strong>.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-generalizer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-283\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-generalizer.jpg\" alt=\"1 generalizer\" width=\"512\" height=\"437\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-generalizer.jpg 512w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-generalizer-300x256.jpg 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/p>\n<p>There are several algorithms available to make coastlines look smoother. I am choosing Chaiken&#8217;s Algorithm, which is pretty easy to use as it is separated in levels.<\/p>\n<p>Here are the results with <strong>Level 1, Weight 3.00 <\/strong>combined with the previously simplified map.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-europe-after-gen-and-simpl.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-284\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-europe-after-gen-and-simpl.jpg\" alt=\"1 europe after gen and simpl\" width=\"436\" height=\"356\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-europe-after-gen-and-simpl.jpg 436w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-europe-after-gen-and-simpl-300x245.jpg 300w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/a><\/p>\n<p>If I&#8217;m starting from the original coastline layer (without simplifying), this algorithm is not very effective. I am opting for another algorithm (Boyle&#8217;s Forward-Looking Algorithm, look-ahead 10).<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-gen.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-286\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-gen.jpg\" alt=\"1 norway gen\" width=\"644\" height=\"384\" srcset=\"https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-gen.jpg 644w, https:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/05\/1-norway-gen-300x179.jpg 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p><strong>Three tips: <\/strong><\/p>\n<ul>\n<li><strong>The advantage of Generalisation is that it automatically creates a new layer. You won&#8217;t lose your original layer.<\/strong><\/li>\n<li><strong>Finding the right algorithm and the right level of details may take some time, be patient.<\/strong><\/li>\n<li><strong>B<\/strong><strong>e aware that these plugins will slow down your computer. Avoid having many other applications open.\u00a0<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>ONE STEP FURTHER #2: Raster Layers<\/strong><\/span><\/p>\n<p>Now that your map has borders, rivers, and lines, you might want to add any topographical element, like terrain. These types of layers are called\u00a0<strong>raster layers<\/strong>, since they cover a surface rather than just lines and dots. The files usually have a much bigger size. Once again, Natural Earth Data has <a href=\"http:\/\/www.naturalearthdata.com\/downloads\/10m-raster-data\/\" target=\"_blank\" rel=\"noopener\">a good collection<\/a> that you can play with. Let&#8217;s download the <a href=\"http:\/\/www.naturalearthdata.com\/http\/\/www.naturalearthdata.com\/download\/10m\/raster\/NE1_HR_LC.zip\" target=\"_blank\" rel=\"noopener\">Natural Earth 1 raster layer<\/a>, which focuses on land.<\/p>\n<p>The process is nearly the same, but you will need to select\u00a0<strong>Add Raster Layer\u00a0<\/strong>and select the TIFF image that you just unzipped. Our result is even more convincing now. You may tick or untick your other layers in order to see what format is best for you. In this case, you might want to focus on pieces of land and dismiss rivers. QGIS allows you to disable layers without having to totally removing them.<\/p>\n<p><a href=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/04\/6-world-map-with-raster-layer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-42 size-full\" src=\"http:\/\/transnationalhistory.net\/mapping\/wp-content\/uploads\/2015\/04\/6-world-map-with-raster-layer-e1432036838882.jpg\" alt=\"6 world map with raster layer\" width=\"800\" height=\"409\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><center><em>(In this case, we have reduced the coastline layer to 0.20 thickness to get a more subtle result)<\/em><\/center>&nbsp;<\/p>\n<p>Last update: 28 May 2015 on QGIS 2.8.1 Wien<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/baselayer\/\">Back to Tutorial 1: Base Layers<\/a>\u00a0| <a href=\"http:\/\/transnationalhistory.net\/mapping\/tutorials\/pointvectorlayers\/\">Next tutorial: Point Vector Layers<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ONE STEP FURTHER #1: Smoother Coastlines As you saw in the first tutorial, some areas of the coastline may look a little bit messy, due to the geographic complexity of the region. That is the case, for instance, of the south of Chile or the fjords of Norway. There is a way to simplify the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":22,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-204","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/204","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=204"}],"version-history":[{"count":2,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/204\/revisions"}],"predecessor-version":[{"id":592,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/204\/revisions\/592"}],"up":[{"embeddable":true,"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/pages\/22"}],"wp:attachment":[{"href":"https:\/\/transnationalhistory.net\/mapping\/wp-json\/wp\/v2\/media?parent=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}