[Qgis-user] Atlas data defined rotation and zoom problem
Alexandre Neto
senhor.neto at gmail.com
Mon Dec 8 15:34:56 PST 2014
Hello Benjamin,
Instead of rotating your map item, change it's size. Take a look at this
blog post:
http://sigsemgrilhetas.wordpress.com/2014/11/09/series-de-mapas-com-formatos-multiplos-em-qgis-2-6-parte-1-multiple-format-map-series-using-qgis-2-6-part-1/
Hope it helps,
Alexandre Neto
Em 08/12/2014 21:42, "Benjamin Wragg" <bwragg at isasolutions.com.au> escreveu:
> Hi list,
>
> 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. The problem we had before
> 2.6 was that some maps needed to be rotated because the map is a small
> landscape rectangle but some polygons are more portrait, tall and skinny.
> So some maps print at a large scale as shown below (outside box is page,
> inner box is polygon):
>
> _______________________
> | ____ |
> | | | |
> | | | |
> | |___| |
> —————————————
>
> But we need it to rotate the map so it can print like:
>
> ________________________
> | ___________________ |
> | | | |
> | | | |
> | |__________________| |
> —————————————
>
> So in 2.6 a feature I’ve been waiting for was added, data driven rotation.
> So each polygon has had a rotation value field added. So if I specify a
> value of say 90, it rotates the map 90 degrees as expected. The problem is
> Atlas seems to do things in this order:
>
> 1. Get the next polygon
> 2. Zoom to the polygon
> 3. Add the 1% margin.
> 4. Rotate the map as defined in the data
>
> Because it seems to do the rotation after it has zoomed to the polygon,
> the map isn’t benefiting at all from rotating the map. The map is still
> printing at the same large scale. Looks something like this:
> ________________________
> | ________ |
> | | | |
> | |_______ | |
> | |
> —————————————
>
> Is there a work around for this anyone has come across?
> Is this the way it should work? Should the order be more:
>
> 1. Get the next polygon
> 2. Rotate the map as defined in the data
> 3. Zoom to the polygon
> 4. Add the 1% margin.
>
> Thanks,
>
> Benjamin Wragg
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141208/4fd76afe/attachment.html>
More information about the Qgis-user
mailing list