2

I am using Atlas on QGIS 2.18.17. The city I am working on is divided by wards and these wards are divided by blocks.

Each page of the atlas is focusing on one block (layer coverage: block.shp).

There is a small map on each page displaying the ward where is located the block. To show the ward where is located the current atlas feature (i.e. the current block) the extents are set as follow:

A: x_min( geometry(get_feature('ward layer','WardName',attribute(@atlas_feature,'WardName'))))

B: y_min( geometry(get_feature('ward layer','WardName',attribute(@atlas_feature,'WardName'))))

C: x_max( geometry(get_feature('ward layer','WardName',attribute(@atlas_feature,'WardName'))))

D: y_max( geometry(get_feature('ward layer','WardName',attribute(@atlas_feature,'WardName'))))

To improve a bit the visibility, I will add a 15% margin around feature as follow:

x_min = A - (C - A) *15%

y_min = B - (D - B) * 15%

etc.

Would it be interesting to improve the option "controlled by atlas" by adding an option such as "set extent to another layer than atlas coverage layer"? (it's a kind of request for feature improvement in fact but I don't know where to post this)

closed as too broad by ahmadhanb, whyzar, xunilk, aldo_tapia, BERA Apr 4 '18 at 5:23

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.