> <span style="line-height:19.7999992370605px">Keeping just center+scale+rotation in QgsMapSettings seems like a</span><br style="line-height:19.7999992370605px"><span style="line-height:19.7999992370605px">cleaner solution. </span><br><div><span style="line-height:19.7999992370605px"><br></span></div><div><span style="line-height:19.7999992370605px">Is it still possible to have the ability to set extents?  There are use cases for setting it vs trying to work out the scale and center.</span></div><div><span style="line-height:19.7999992370605px"><br></span></div><div>- Nathan</div><br><div class="gmail_quote">On Mon Dec 08 2014 at 2:51:21 PM Martin Dobias <<a href="mailto:wonder.sk@gmail.com">wonder.sk@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sandro<br>
<br>
On Tue, Dec 2, 2014 at 11:15 PM, Sandro Santilli <<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>> wrote:<br>
><br>
> I'm still thinking that the triplet center,scale,rotation would be the<br>
> simplest to retain. The problem with that is that keeping the scale<br>
> might result in a different area being exposed depending on the<br>
> output size. On the other hand keeping the extent would result in<br>
> a different scale being used depending on output size.<br>
<br>
Keeping just center+scale+rotation in QgsMapSettings seems like a<br>
cleaner solution. Having to worry about various kinds of extent with<br>
rotation in place will wear out our brains ("requested" extent,<br>
"visible" extent, rotated "visible" extent). With your proposed<br>
triplet we could at least get rid of the "requested" extent. (I still<br>
find it a bit difficult to explain why both requested / visible extent<br>
are needed - which is not a good sign!)<br>
<br>
<br>
> What's more worth saving: scale of visible area ?<br>
<br>
IMHO it does not really matter much.<br>
<br>
One issue I could see by saving center+scale instead of extent is that<br>
e.g. if you load a project with map extent to the whole project, in<br>
differently shaped QGIS window some bits of data may be slightly<br>
outside of the view. But even for this case the canvas could store its<br>
original<br>
<br>
<br>
Regards<br>
Martin<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div>