Skip to content

Python whole-layer reads lose materialization loss notices #2211

Closed

Description

@giswqs

Layer::load_all_counted currently returns only skipped rows, unread dates and rounded dates from a materialization report (crates/map/src/lib.rs:807). Other reader messages do not cross that boundary. Python's _Engine.layer_geojson consumes those three fields and writes 2D GeoJSON (apps/rustgis-python/src/lib.rs:170); the materialized dataset can retain zm_dropped without emitting a corresponding notice on this whole-read path.

Review sources: original thread, summary, follow-up summary. Source confirmed during the release sweep. #1634 was the separate, now-closed GeoPackage attribute-table omission; #2202 covers other reader-accounting paths. Duplicate search and the broader #2008 audit did not identify an explicit whole-read Python relay issue.

Carry relevant reader losses through materialization to Python's take_notices channel, including source/layer context and counts. Cover a warning discovered only in the full read, a retained Z/M loss, and clean input. Also ensure that a notice already emitted when opening the layer is not duplicated simply by exporting it; establish how notice deduplication belongs to the session rather than dropping source reports globally.

No runtime reproduction is claimed in this source-level report.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions