Skip to content

Import a QGIS style with its reads made on a thread #2620

Closed

Description

@jgregoriorincon

style.importQgis reads its .qml file on the command's thread, and since #2612 it also reads its raster image markers' images there: up to 64 MiB, each file decoded once to check it. The work is bounded, but a slow disk or network share can hold the window, with no Cancel.

cmd/reads.rs already makes the reads of Add Data, Reload Data, Convert To Annotation and others on a thread before the command lands (reads::ahead). Proposal: a style.importQgis arm in reads::prepare that reads the style and its images there and hands them to the command, so the import gets Cancel and progress like those commands. project.importQgis is a separate case, because it runs other commands as it goes. Raised in review of #2612.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions