Skip to content

GML reader: say every multi-geometry part and interior ring left out, and settle which GML values are shapes #1620

Closed

Description

@Mavrick-F

The built-in GML reader now says what it leaves out (#1563): properties holding nested values, other GML values and further shapes, and multi-geometry members that give nothing to keep. Review of that change found a few cases where the accounting is still coarse. They predate #1563 and are left for their own change:

  • Members partly read. A multi-geometry member counts as kept when any shape under it is read, so a member holding one readable and one unreadable part reports nothing for the second.
  • Interior rings. A polygon whose exterior is read keeps it, and an interior ring that can't be read is left out without a notice.
  • Which GML values are shapes. Any GML element under a property counts as a shape unless it is one of the known non-geometry kinds (times, definitions, dictionaries and units, metadata, measures, value objects). An unlisted non-geometry value on a feature without a shape is counted as unreadable geometry rather than a property not read; the opposite rule (only listed geometry kinds are shapes) misses geometry kinds instead. Checking against the GML 3.2 schema's substitution groups would settle it.
  • Repeated properties. A feature with the same property twice (<app:alias>A</app:alias><app:alias>B</app:alias>) keeps only the last value.
  • More than 500 field names. Past 500 distinct property names, further ones get no column and their values are dropped.
  • Notices. The count of features whose shape couldn't be read goes with a file's first layer rather than each feature type's own; names in the unread-property notice follow the order they were sorted into, not document order; and the reason for a lost multi-geometry part doesn't mention invalid coordinates. gml:description should be a property not read, not a shape.

The first two, and the last two, leave data out without a notice, which the Never silent rule in AGENTS.md calls a bug; the third reports the loss under the wrong cause.

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