[Qgis-developer] Saving map config, or the meaning of extent (again)
wonder.sk at gmail.com
Sun Dec 7 22:42:05 PST 2014
On Mon, Dec 8, 2014 at 1:26 PM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
>> Keeping just center+scale+rotation in QgsMapSettings seems like a
> cleaner solution.
> 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.
Yeah it would be still possible to set/get extents - this is just
about which pieces of information would be canonical and which would
be derived. Currently the center and map-units-per-pixel are derived
from the extent and image size, the idea is to have that reversed:
extent to be derived from center, map-units-per-pixel and image size.
More information about the Qgis-developer