 Hello, this is Hans van der Kwaas, senior lecturer at IHE Doft Institute for Water Education. In a previous video you've seen how to make a catchment map using the print layout in QGIS. In version 3.14 pi there are some new features that I'm going to demonstrate, plus some little extras. First of all there are some more styles for the scale bar. So here you see the default and in the item properties there are now a few more styles you can choose from, such as the stepped line or hollow. Here I will use the stepped line. Sometimes I see the wrong scale bar that belongs to the locator map, so it's important that you choose the correct map, which is the main map. So we have the scale bar for the main map. Now let's improve the legend. Since QGIS 3.14 we can use custom legend patches. Go to the main QGIS screen. There I go to the style manager using that icon. And in the style manager you can find the legend patch shapes. Now it's empty, but I'm going to import style patches. So I'll go to import items and you can use a file or a URL, in this case I'm going to use a URL. Here you find the link that I will also put in the description. I go to the class Carlson patches XML file, I click on raw and then I copy the URL. Back in QGIS I paste the URL and I click fetch items and there we see those nice patches that were prepared by class Carlson. I click do not import embedded tags and then I click select all and import and there's one with the same name, but I'll just overwrite it. And there we see all those patches and there's some nice ones for our rivers. So click close and there I double click on stream order and there I click on the shape under the patch part and there I switch to all legend patch shapes and I'm going to choose river 1. Now this style you see it already in the result is applied to our stream order legend, that's very nice and it looks now more like rivers. So we're going to do something similar for the roar catchment, but we want first some more space there and I do that by switching off the split layer so it gets its own space for the roar catchment. So I'll go back to the main QGIS screen and make sure that I choose the catchment boundary, one with only the boundary color and I am going to select the polygon and I click this button to copy the features. Then I go to the style manager and I go to the legend patch shapes and switch to all so we can see them all and I click the plus button and we're going to add our own custom fill legend patch shape. So we've copied the shape and I simply paste it in here so remove what was there and we need to add it a little bit because we don't need that first line so delete it and also the empty space and then also everything that comes after the last bracket needs to be removed. We want to preserve the aspect ratio and then you click OK and then you have to give this new patch a name. Let's call it catchment and we can change the tag, let's call it hydrology and you can add it to the favorites or just save it and then it's added. Here we see our nice roar catchment shape as a legend patch. So click close and I'm going to unselect and I move back to my print layout. Now back in the print layout we double click on the roar catchment and we click on the shape and there we're going to find it under the old legend patch shapes and there's our catchment patch and you see it's now applied in the legend but it doesn't look good yet so we're going to improve the size a little bit. First I'm going to switch off the background so we can use the space more efficiently and now we're going to change the size of the patch and the height needs to be changed, let's say 30 units. Let's finalize that footer part of the map by putting everything in the right place. That looks great. The last thing I want to show is how to add the elevation ramp as a legend but then with the minimum and maximum value automatically calculated. So I'm going to add a rectangle, I'm going to change the size, width of 5 and the height of 50, let's zoom in a bit so we can see what we do and click on style and then I go to simple fill and I want a gradient fill, so I'm going to change it to a gradient fill and then choose the same color ramp as the map and this one here comes from CPT city and then under topography it's the elevation, there it is, now it looks nicer if you have a little box around it and we could do that by having a simple line but we can also make it a little bit darker because we have blended the colors and I'm going to give the box a little bit of gray transparent color to make it a little bit darker. So let's start with black and then change it a little bit to gray and change the opacity, that's a bit of tweaking so it matches the slightly darker colors that we have in the map because of the blending, that looks better. Now we need to add some text to the legend, first it needs to be clear that this is the elevation, type elevation and now let's add the minimum and maximum value to the right of the ramp and we're going to get that from the raster statistics, so under rasters you find raster statistic and that's the function that we're going to use and under map layers you can find the DEM, so when I double click we get the DEM object there filled in in a way that the expression is recognized. Now go back to raster statistics to see how the syntax works and we need to add the band number and the property that we want to calculate, let's start with the minimum so we add band number 1 and we use the string min for calculating the minimum and we see there that it gives 9, that's the minimum value and we also want the units, very important to always add the units so we concatenate the units to it and now we see 9 meters, so that looks good, click OK and now we have the 9 meters, let's copy this one because we're going to do a similar trick for the maximum value, put it there, make sure that they are aligned and I simply have to change min to max to get the maximum and there it is, so now we have automatically calculate the minimum and maximum value of our color ramp, let's do some finishing touches, let's put a frame around the inset map, the locator map and you see it blocks some legends there, so I'm going to change that in our case, map 1 should not obstruct the legends of the cities and towns, now we can export the file to a PNG or to a PDF, I hope this video was useful, please subscribe to my YouTube channel to get updates, for more free materials have a look at GISOpenCourseWare.org