Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions