Skip to content

Data Interop converts only the loaded features of a streamed layer, on the UI thread without Cancel #1857

Closed

Description

@Mavrick-F

What happens

Data Interop (data.convert, Analyze › Workflows › Data Interop) has two problems, both older than the recent export-notice changes (#1780):

  1. A streamed layer converts only what's loaded. convert reads the layer's in-memory dataset. For a layer streamed from GeoPackage, FlatGeobuf, GeoParquet or PostGIS, that holds only the features loaded for the current view. The file it writes is missing the rest, and nothing says so. Export Features reads the whole source (exports::write_chunks_in); Data Interop doesn't.
  2. It holds the window. It runs on the UI thread, with no progress and no Cancel, although its work grows with the layer. AGENTS.md › Never hold the window asks for a background path. Data Interop isn't in exports::runs_in_background, so long_commands_stop_when_cancelled_while_they_run doesn't cover it.

Steps to reproduce

  1. Add a large GeoPackage or FlatGeobuf layer, so it streams, and zoom in on part of it.
  2. Run Data Interop on it, to GeoJSON or CSV with a path.
  3. The file holds only the features loaded for the view. With a very large layer that is all loaded, the window doesn't respond until the conversion finishes.

Expected

The conversion reads the whole source, as Export Features does, and runs on the export background path, with progress and Cancel. Without a path (text returned), it can stay on the UI thread, but then a streamed layer should be refused or noticed rather than cut silently.

Since both changes touch the same code, I'd fix them together.

Activity

  1. self-assigned this
    on Nov 12, 2026
  2. Mavrick-F commented on Nov 12, 2026

    @Mavrick-F
    MemberAuthor

    I’m taking this. I’ll reuse the whole-source export background path for conversions to a file, with progress and cancellation, and cover streamed layers and text-only conversion with regression tests.

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

Metadata

Metadata

Assignees

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