TransWikia.com

In Atlas how can I put a margin around a feature but also use predefined scales

Geographic Information Systems Asked on August 13, 2021

In QGIS, how can I put a margin around a feature but also use predefined scales in Atlas? I have a feature that fits in the map but very tightly, so I would like QGIS to use a smaller scale to better accommodate the drawing.

Tried to create a buffer around the feature thinking the program would understand that I also want it to appear and so shrink the drawing, but it didn’t work. Is there a way to do that?

enter image description here

One Answer

Lets take this as an example. Some features in a layer and a second layer buffering these features:

enter image description here

First go to Project -> Properties and add some suiting scales you wish to use. The quality of your result will highly depend on this list!

enter image description here

Now in your layout go to Atlas tab and change your coverage layer to the buffer. Choose "Hidden coverage layer" if you dont wish to show this buffer on your map:

enter image description here

Now go back to your map-properties and choose "Predefined Scale (best fit)" within "Controlled by Atlas":

enter image description here

Here an example (with buffers not hidden to illustrate):

enter image description here

Take a look at the changeing scalebar on the top-right. It always matches a scale we just pre-defined in our project settings. The quality of your result is highly dependent on the list of predefined scales available for your project. Alternatively you can also try other buffer sizes.

Correct answer by MrXsquared on August 13, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP