Bug report #6956

ATLAS does not fit well for objects higher than they are large

Added by Regis Haubourg about 11 years ago. Updated almost 11 years ago.

Status:Closed
Priority:High
Assignee:Vincent Picavet
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16066

Description

When generating atlas, images are not fitted correctly into map frame when object bbox is higher than it is large (a portrait aspect more than landscape)
;
Here are two screenshots and zip containing datas + qgs to reproduce it.
Régis

rastFRFRR631_4.jpg - image_not_resized_correctly (35.8 KB) Regis Haubourg, 2013-01-07 06:55 AM

rastFRFR632.jpg - correct image (49 KB) Regis Haubourg, 2013-01-07 06:58 AM

bug_ratio_export_atlas.zip - zip with data and project (279 KB) Regis Haubourg, 2013-01-07 06:58 AM

Associated revisions

Revision ca77a987
Added by Hugo Mercier about 11 years ago

refs #6956
Fix map frame resizing : do not touch the frame size, adapt the geometry's extent if needed

History

#1 Updated by Regis Haubourg about 11 years ago

Here are the missing files

#2 Updated by Regis Haubourg about 11 years ago

probably related to #6988

#3 Updated by Hugo Mercier about 11 years ago

What do you expect when the extent of an object has not the same aspect ratio as the map frame's one ?
The current behaviour is to resize the height of the frame, keeping the width.
Other choices are :
- resize the extent in the height direction (that what the composer "Set to map canvas" seems to do).
- resize the content (not sure it is wanted)

Perhaps we should expose this choice to the user ...

#4 Updated by Regis Haubourg about 11 years ago

Hi, I think everybody expects centered images on both axes when using Atlas. And the bug described here in not only a problem of centering. Data is missing in the lower part of the image. This shouldn't be.

#5 Updated by Hugo Mercier about 11 years ago

Data are not exactly missing. If you change settings in order to display the frame border, you will see the frame resized in height to fit the object's extent.
But I understand and agree: keeping the frame's border untouched and centering the object is the key.

#6 Updated by Hugo Mercier about 11 years ago

  • % Done changed from 0 to 100

#7 Updated by Regis Haubourg almost 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF