Skip to content

The Disable tiled raster layer exports option doesn't work #58

@MrChebur

Description

@MrChebur

The Disable tiled raster layer exports option doesn't work:

Image

This happens becauserasterize is not in the list of layout.customProperties()

if layout.customProperty("rasterize") in ["true", True]:
    exportSettings.rasterizeWholeImage = True

Here is full list of layout.customProperties():

 layout.customProperties() = ['atlasRasterFormat',
                                         'forceVector',
                                         'imageAntialias',
                                         'imageCropMarginBottom',
                                         'imageCropMarginLeft',
                                         'imageCropMarginRight',
                                         'imageCropMarginTop',
                                         'imageCropToContents',
                                         'pdfAppendGeoreference',
                                         'pdfCreateGeoPdf',
                                         'pdfDisableRasterTiles',
                                         'pdfExportThemes',
                                         'pdfIncludeMetadata',
                                         'pdfLayerOrder',
                                         'pdfLosslessImages',
                                         'pdfOgcBestPracticeFormat',
                                         'pdfSimplify',
                                         'pdfTextFormat',
                                         'singleFile',
                                         'variableNames',
                                         'variableValues']

So if you replace rasterize with pdfDisableRasterTiles it will work as expected.

https://github.com/DelazJ/MapsPrinter/blob/master/MapsPrinter/processor.py

if layout.customProperty("pdfDisableRasterTiles") in ["true", True]:
    exportSettings.rasterizeWholeImage = True

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions