Extract imagery metadata

Supported in: Batch

Extract metadata fields from an image's media reference.

Expression categories: Media

Declared arguments

  • Imagery metadata information to include - Additional metadata columns to include.
    Set<Enum<Attributes, Bands, Bytes, Dimensions, Format, Geographic Metadata, ICC Profile>>
  • Media reference - The column containing media references to imagery in the media set.
    Expression<Media reference>

Output type: Struct

Examples

Example 1: Base case

Argument values:

  • Imagery metadata information to include: [Attributes, Bands, Bytes, Dimensions, Format, Geographic Metadata, ICC Profile]
  • Media reference: Media Reference
Media ReferenceOutput
{"mimeType":"image/tiff","reference":{"type":"mediaSetItem","mediaSetItem":{"mediaSetRid":"ri.mio.test.media-set.1","mediaItemRid":"ri.mio.test.media-item.1"}}}{
attributes: {
 outer_key1 -> {
 inner_key1 -> inner_value1,
},
...

Example 2: Base case

Argument values:

  • Imagery metadata information to include: [Bands, Dimensions, Geographic Metadata]
  • Media reference: Media Reference
Media ReferenceOutput
{"mimeType":"image/tiff","reference":{"type":"mediaSetItem","mediaSetItem":{"mediaSetRid":"ri.mio.test.media-set.1","mediaItemRid":"ri.mio.test.media-item.1"}}}{
bands: [ {
color_interpretation: RED,
type: BYTE,
}, {<b...

Example 3: Base case

Argument values:

  • Imagery metadata information to include: [ICC Profile]
  • Media reference: Media Reference
Media ReferenceOutput
{"mimeType":"image/tiff","reference":{"type":"mediaSetItem","mediaSetItem":{"mediaSetRid":"ri.mio.test.media-set.1","mediaItemRid":"ri.mio.test.media-item.1"}}}{
icc_profile: some-icc-profile,
}