mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-07 00:03:52 -05:00
parent
ae0076a056
commit
cc97a38bcb
@ -29,6 +29,7 @@
|
|||||||
#include "qgsgeometry.h"
|
#include "qgsgeometry.h"
|
||||||
#include "qgsmapserviceexception.h"
|
#include "qgsmapserviceexception.h"
|
||||||
#include "qgslayertree.h"
|
#include "qgslayertree.h"
|
||||||
|
#include "qgslayoututils.h"
|
||||||
#include "qgslayertreemodel.h"
|
#include "qgslayertreemodel.h"
|
||||||
#include "qgslegendrenderer.h"
|
#include "qgslegendrenderer.h"
|
||||||
#include "qgsmaplayer.h"
|
#include "qgsmaplayer.h"
|
||||||
@ -503,6 +504,8 @@ namespace QgsWms
|
|||||||
if ( ok )
|
if ( ok )
|
||||||
exportSettings.dpi = dpi;
|
exportSettings.dpi = dpi;
|
||||||
}
|
}
|
||||||
|
// Set scales
|
||||||
|
exportSettings.predefinedMapScales = QgsLayoutUtils::predefinedScales( layout.get( ) );
|
||||||
// Draw selections
|
// Draw selections
|
||||||
exportSettings.flags |= QgsLayoutRenderContext::FlagDrawSelection;
|
exportSettings.flags |= QgsLayoutRenderContext::FlagDrawSelection;
|
||||||
if ( atlas )
|
if ( atlas )
|
||||||
@ -536,6 +539,8 @@ namespace QgsWms
|
|||||||
dpi = _dpi;
|
dpi = _dpi;
|
||||||
}
|
}
|
||||||
exportSettings.dpi = dpi;
|
exportSettings.dpi = dpi;
|
||||||
|
// Set scales
|
||||||
|
exportSettings.predefinedMapScales = QgsLayoutUtils::predefinedScales( layout.get( ) );
|
||||||
// Draw selections
|
// Draw selections
|
||||||
exportSettings.flags |= QgsLayoutRenderContext::FlagDrawSelection;
|
exportSettings.flags |= QgsLayoutRenderContext::FlagDrawSelection;
|
||||||
// Destination image size in px
|
// Destination image size in px
|
||||||
@ -607,6 +612,8 @@ namespace QgsWms
|
|||||||
exportSettings.flags |= QgsLayoutRenderContext::FlagDrawSelection;
|
exportSettings.flags |= QgsLayoutRenderContext::FlagDrawSelection;
|
||||||
// Print as raster
|
// Print as raster
|
||||||
exportSettings.rasterizeWholeImage = layout->customProperty( QStringLiteral( "rasterize" ), false ).toBool();
|
exportSettings.rasterizeWholeImage = layout->customProperty( QStringLiteral( "rasterize" ), false ).toBool();
|
||||||
|
// Set scales
|
||||||
|
exportSettings.predefinedMapScales = QgsLayoutUtils::predefinedScales( layout.get( ) );
|
||||||
|
|
||||||
// Export all pages
|
// Export all pages
|
||||||
if ( atlas )
|
if ( atlas )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user