 Hello, welcome back on my YouTube channel. One week ago I made a very nice hike with the Erasmus Moondus Flutterisk Management students in Saxon, Switzerland. During the hike we have mapped our locations and added pictures in a fieldform using Mergin Maps which is a great tool for field data collection. In other videos on my YouTube channel I cover how to create fieldforms and how to use the app in the field. In this video I will cover how to create weather buffers that show the direction of the pictures. In the last video I have demonstrated how to create this outdoor map using a map-tiler plugin and we have exported the GPX file from Strava to show the route on the map. Now we are going to add the locations of the pictures together with their rotations. The procedure is based on a very nice tutorial made by Kurt Menke for the Community Health Maps. I'll provide a link in the description of this video. First we need to import the pictures using the Mergin plugin which connects to the cloud service where our mapping project from the field has been stored. After installing Mergin you can find Mergin in the browser panel but first you need to give your credentials to connect to the cloud service and find your projects. You can save your credentials and test the connection. If the connection is ok, click ok. Now it will update your folders on Mergin Maps and there you can find your mapping project. Here we will use the Schmilka project. Click right and choose download. It will ask a folder for where to download these files from the project. It will create a sub-folder with the name Schmilka. You can also open the project immediately. Here you see the project from Mergin Maps in QGIS. Now let's explore the collected data. I open the attribute table and if I switch it to the form view then I can see the pictures in the attribute table because they are linked and the widget make sure that we can see the pictures here. Now let's see where the pictures are stored. You can see it here in the browser panel under your Mergin project. If you click right on your project you can also choose open directory and it shows the folder with the pictures. So let's open our most recent project and see how we can add those pictures to it. In the Processing Toolbox you can find a useful tool to extract the metadata from the pictures. It's called Import Geotech Photos. There you can provide the input folder where you have your pictures stored. In our case that's in the Schmilka folder. If you have sub-folders you can check the box scan recursively and we save the layer to a shapefile. We call photo locations. Then I run it and it gives one error for one picture that it cannot find the metadata that can happen and it will simply be skipped. Now let's add a little marker there so we see where our pictures have been taken. So I'm using an SVG marker from the symbols and choose a red marker to make it a little larger. So there's where our pictures have been taken. And when I open the attribute table of this layer I can see the picture because there's the link to the picture. But I also see this metadata that comes from the Exit file. And that's very useful for the next step where we're going to create watch buffers and rotate also the pictures with the direction that you can see here. This layer is in geographic coordinate system so I'm going to re-project it before we continue to avoid that we get all kinds of errors. We'll call it photo locations UTM. Change the CRS to UTM and click OK. Now we're using another tool to create the watch buffers. It's called create watch buffers and we use as an input layer the UTM photo locations. You're going to change the azimuth using a data defined override and we choose direction. You can give a watch width in degrees and I'll keep it as default and an outer radius which will be the size of the polygon with the outer radius. I think in map units this will create polygons. So just put it at 100 and you can trial and error what works best for the scale at which you want to use these watch buffers. So it's also good to create a temporary file and see the result. For this demo I'll just go with this. If you want to have it more detailed and zoomed in then you create smaller watch buffers. Now let's style the watch buffers. I'm going to use a shape burst fill and I'm going to change the first color. Also make it orange and it's linked to that root. You can also make it contrasting with the root and the second color I'll change to transparent using the opacity slider and I'm going to adjust the distance. This looks quite nice for the different directions that the pictures were taken. Now it would be also nice to see the pictures on this map. So we can style the points of these pictures with the pictures themselves by changing the simple marker there to raster image marker and you can choose a file which you can also use a data defined override and since we have the paths to the locations of the pictures in a field we can choose there the photo field so it knows where the pictures are and shows the pictures. You can see that already up the map but very small and we can also change there the rotation but if you choose rotation from the attribute table that's not the variable that you need. So here you'll see the impact of that. Let me make the pictures bigger. It just probably indicates if it's a portrait or a landscape but not the direction at which the picture has been taken so that's another field that you need. So the field that you need is the direction field and not the rotation field. And now you see that the pictures are rotated in the direction that they were taken and connected to those wedge buffers. You see that here for this rock that they're taken in different directions and of course you can play with the scale of the wedge buffer or with the size of the images. You can play with the size of the pictures and you can also adjust the wedge buffer size. Just depends on how you're going to use this for your field research for example and you see that the buffers are still temporary layers. So if I click on the chip I can make it permanent by saving the scratch layer and choose here a shapefile but that will not work because it used curved polygon geometry which is not supported by the shapefile so better way of storing this is in a geopackage. I'll call it wedge and the layer name wedges and then I run it and now it's stored. So I hope this video was useful to see how you can get those pictures from emerging maps projects on a map and rotated according to the direction in which they were taken together with the wedge buffers.