Skip to content

GeoPackage attribute-only tables are skipped silently when the file is added #1634

Closed

Description

@giswqs

Found while fixing #1594 (PR #1624).

Adding a GeoPackage that holds feature tables and an attribute-only table (gpkg_contents.data_type = 'attributes', which RustGIS itself writes for a dataset without geometry) adds the feature tables and leaves the attribute table out with no notice: layer.addData returns {"layer": …, "layers": […], "features": …} with no tables, and Session.notices() is empty. info.fileLayers doesn't list it either, and layer.addData with layer="notes" fails with no feature table 'notes' (tables: A).

Repro (Python): write a layer with to_file("t.gpkg"), then add a table with sqlite3 (CREATE TABLE notes (fid INTEGER PRIMARY KEY, note TEXT), one row, and a gpkg_contents row with data_type='attributes'), then s.run("layer.addData", path="t.gpkg").

Expected (AGENTS.md, Never silent): the attribute table is added as a standalone table (as other readers report tables), or a counted notice says it was skipped. Needs a choice between the two.

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