...
Numberedheadings | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
QGIS AtlasIntroductionAtlas is a component of Print Layouts which allows multiple output pages to be automatically generated from a single Layout, driven by an attribute of the data, with a page for each feature. This is commonly used to produce, for example, a single map for each feature in an administrative boundary layer, for example wards or counties. Various settings are available, and as well as the map itself being dynamic, other items in the Layout such as titles can be dynamically generated, with attribute values drawn from the current feature. Set up the MapOpen the There are three layers
The task is to create an Atlas with one page for each National Park, displaying all the data available, with some appropriate styling.
Set up the AtlasTo do this, first create a layout and enable an Atlas:
You now need to configure the map which is going to be used for the Atlas (bear in mind that you might have more than one map). Select the map, navigate to the Item properties tab and complete the Controlled by Atlas section: Note that you will need to decide at this point whether to show each feature at the same scale or whether you want each feature to use the maximum area of the page, which will usually mean a range of scales - try with both options. Review the resultsYou are now ready to have a look at the Atlas - use the Atlas toolbar controls to review the maps - first click on Preview Atlas (the right-hand button on the Atlas toolbar) to activate the tools. Use the left and right arrows to scroll through the Atlas pages. You can now see what each page of the Atlas will look like when generated. Make any changes you need to the styling or Atlas setting and review again until you are happy that the outcome is ready for publication. Filter the AtlasIf you only want to show a subset of the features in the Atlas, you can filter the data in the Altas settings. For example to show only parks with an area of less then 1,000 sqm, add a filter in the Atlas properties page:
Add further elements
When you have created an Atlas which is ready to produce, export the results.
Customise the filename for each PDF by editing the Output filename expression value under Atlas using the expression builder, to use an attribute value from the feature in the filename (for example the national park name). Use a hidden layerYou can use a coverage layer which is not visible in the map to drive the Atlas - check the Hidden coverage layer box to do this. This could be a grid layer for example, or a layer with polygons for specific areas of interest. If you have time, try using this approach, creating an appropriate layer. Set styling to highlight the layer in focusYou may want your styling to differentiate between the feature which is the focus of the map, and the other features, so that it stands out when there is more than one feature visible in the map - for example when you are looking at the New Forest National Park, when the data is not filtered.. To do this, you will need to add a rule-based style for every layer which you want to change. In the Symbology tab for the layer:
If you want to make the styling of features other than those in the coverage layer dynamic, you'll need to use a rule-based style with an expression which determines, for example whether they are inside the current feature:
Try editing the symbology of the railway stations layer to change the style of the station depending on whether they are inside or outside the current national park. You may also want to use other Geometry functions such as intersects, or overlaps. |
...