Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.61 KB

File metadata and controls

39 lines (26 loc) · 1.61 KB

Interpolation

The Interpolation operator increases raster resolution by interpolating values of an input raster. If queried with a resolution that is coarser than the input resolution, interpolation is not applicable and an error is returned. ## Inputs The Interpolation operator expects exactly one raster input. ## Resolution The target resolution can be specified either as an explicit Resolution (in pixel units) or as a Fraction that scales the input resolution. rust,ignore // Scale the input resolution by a factor of 2 in both x and y directions InterpolationResolution::Fraction(Fraction { x: 2.0, y: 2.0 }) rust,ignore // Use an explicit resolution of 50×50 pixel units InterpolationResolution::Resolution(SpatialResolution { x: 50.0, y: 50.0 })

Properties

Name Type
type string
params InterpolationParameters
sources SingleRasterSource

Example

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

// TODO: Update the object below with actual values
const example = {
  "type": null,
  "params": null,
  "sources": null,
} satisfies Interpolation

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 Interpolation
console.log(exampleParsed)

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