Skip to content

Should Quickinfo output the same metadata key-values that a pdal info --summary call would? #193

@kylemann16

Description

@kylemann16

A quickinfo call returns a set group of key-value pairs, when PDAL's metadata collection and output are not so defined. Should the output from pdal info --summary on the command line be the same as a pipeline.quickinfo in python?

For example, I need the STAC Ids from an ItemCollection that matches the params I have.

A call to pdal info --summary --driver readers.stac on the command line might look like this:

$pdal info --summary --driver readers.stac --debug --readers.stac.asset_names 'ept.json' --readers.stac.item_ids '^(USGS_LPC_){0,1}MI_\w{0,}' https://s3-us-west-2.amazonaws.com/usgs-lidar-stac/ept/item_collection.json
{
  "file_size": 16899552,
  "filename": "https://s3-us-west-2.amazonaws.com/usgs-lidar-stac/ept/item_collection.json",
  "now": "2025-06-30T10:15:52-0500",
  "pdal_version": "2.8.4 (git-version: Release)",
  "reader": "readers.stac",
  "summary":
  {
    "bounds":
    {
      "maxx": -9173467,
      "maxy": 6020840,
      "maxz": 400344,
      "minx": -10066325,
      "miny": 5113087,
      "minz": -4503
    },
    "dimensions": "Classification, EdgeOfFlightLine, GpsTime, Intensity, KeyPoint, NumberOfReturns, Overlap, PointSourceId, ReturnNumber, ScanAngleRank, ScanChannel, ScanDirectionFlag, Synthetic, UserData, Withheld, X, Y, Z, OriginId, Pulse width, Blue, Green, Red",
    "metadata":
    {
      "ids":
      [
        "MI_31Co_Barry_2016",
        "MI_31Co_ChippewaCo_TL_2017",
        ...
      ],
      "item_ids":
      [
        "MI_31Co_Barry_2016",
        "MI_31Co_ChippewaCo_TL_2017",
        ...
      ]
    },
    "num_points": 768598386500
  }
}

If I do the equivalent call in pdal-python with this call and output:

>>> reader = pdal.Reader.stac(filename='https://s3-us-west-2.amazonaws.com/usgs-lidar-stac/ept/item_collection.json', item_ids=['^(USGS_LPC_){0,1}MI_\\w{0,}'], asset_names=['ept.json'])
>>> p = reader.pipeline()
>>> qi = p.quickinfo
>>> qi['readers.stac']
{'bounds': {'maxx': -9173467, 'maxy': 6020840, 'maxz': 400344, 'minx': -10066325, 'miny': 5113087, 'minz': -4503}, 'dimensions': 'Classification, EdgeOfFlightLine, GpsTime, Intensity, KeyPoint, NumberOfReturns, Overlap, PointSourceId, ReturnNumber, ScanAngleRank, ScanChannel, ScanDirectionFlag, Synthetic, UserData, Withheld, X, Y, Z, OriginId, Pulse width, Blue, Green, Red', 'num_points': 1537196773000}

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