Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.19 KB

File metadata and controls

44 lines (31 loc) · 1.19 KB

MlModelMetadata

Properties

Name Type
inputType RasterDataType
outputType RasterDataType
inputShape MlTensorShape3D
outputShape MlTensorShape3D
inputNoDataHandling MlModelInputNoDataHandling
outputNoDataHandling MlModelOutputNoDataHandling

Example

import type { MlModelMetadata } from '@geoengine/api-client'

// TODO: Update the object below with actual values
const example = {
  "inputType": null,
  "outputType": null,
  "inputShape": null,
  "outputShape": null,
  "inputNoDataHandling": null,
  "outputNoDataHandling": null,
} satisfies MlModelMetadata

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as MlModelMetadata
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]