<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 21 Nov 2016 5:43 PM, "Benjamin Wragg" <<a href="mailto:support@isasolutions.com.au">support@isasolutions.com.au</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I’m using 2.18.0 and am having a problem with using the “Map Rotation" feature in the Atlas.<br>
<br>
We have a layer filed with polygons which Atlas uses as its coverage layer. So the Atlas creates a map of each polygon and it zooms to the edge of the polygon and then puts a 1% margin on it. On the polygon layer we’ve added a rotation value field and on some we rotate it if needed e.g  if it looks like this:<br>
<br>
_______________________<br>
|                  ____                   |<br>
|                  |      |                   |<br>
|                  |      |                   |<br>
|                  |___|                   |<br>
—————————————<br>
<br>
We enter a value of 90 and it rotates the map 90 degrees as expected so it can print like:<br>
<br>
________________________<br>
|    ___________________    |<br>
|    |                                    |    |<br>
|    |                                    |    |<br>
|    |__________________|    |<br>
—————————————<br>
<br>
The problem I’m having is that if the polygon is an unusual shape it rotates it out of the map frames extent e.g<br>
<br>
No rotation - <a href="https://www.dropbox.com/s/unolamtod3ntu9u/0Rotate.png?dl=1" rel="noreferrer" target="_blank">https://www.dropbox.com/s/<wbr>unolamtod3ntu9u/0Rotate.png?<wbr>dl=1</a> <<a href="https://www.dropbox.com/s/unolamtod3ntu9u/0Rotate.png?dl=1" rel="noreferrer" target="_blank">https://www.dropbox.com/s/<wbr>unolamtod3ntu9u/0Rotate.png?<wbr>dl=1</a>><br>
problem when 30 degrees of rotation - <a href="https://www.dropbox.com/s/p5uv3gy360e54js/30Rotate.png?dl=1" rel="noreferrer" target="_blank">https://www.dropbox.com/s/<wbr>p5uv3gy360e54js/30Rotate.png?<wbr>dl=1</a> <<a href="https://www.dropbox.com/s/p5uv3gy360e54js/30Rotate.png?dl=1" rel="noreferrer" target="_blank">https://www.dropbox.com/s/<wbr>p5uv3gy360e54js/30Rotate.png?<wbr>dl=1</a>><br>
<br>
Atlas seems to do things in this order when I change the current Atlas polygon:<br>
<br>
1. Get the next polygon<br>
2. Zoom to the polygon<br>
3. Add the 1% margin.<br>
4. Rotate the map as defined in the data<br>
<br>
Is there a work around for this anyone has come across?<br>
<br>
Is this the way QGIS should work? Should the order be:<br>
<br>
1. Get the next polygon<br>
2. Rotate the map as defined in the data<br>
3. Zoom to the polygon<br>
4. Add the 1% margin.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Sounds like <a href="http://hub.qgis.org/issues/11954">http://hub.qgis.org/issues/11954</a> - can you confirm?</div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks. I have posted a similar question but different issue about 2 years ago <a href="http://lists.osgeo.org/pipermail/qgis-user/2014-December/030178.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>pipermail/qgis-user/2014-<wbr>December/030178.html</a> <<a href="http://lists.osgeo.org/pipermail/qgis-user/2014-December/030178.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>pipermail/qgis-user/2014-<wbr>December/030178.html</a>> .  The solution given was to change the map size/orientation. This isn’t an option for me as I have a fixed map size which must be in landscape.<br>
<br>
Thanks,<br>
<br>
Benjamin<br>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></blockquote></div><br></div></div></div>