Skip to main content
Fetch a subset of region from given Geotiff image based on minimumX, minimumY, maximumX and maximumY index as well original height and width of image

Signatures

RS_FetchRegion (Band: ARRAY[Double], coordinates: ARRAY[Integer], dimensions: ARRAY[Integer])

Parameters

Band
ARRAY[Double]
required
The band index.
coordinates
ARRAY[Integer]
required
The coordinates value.
dimensions
ARRAY[Integer]
required
The dimensions value.

Return type

An array of double values.

Example

val region = spark.sql("select RS_FetchRegion(Band,Array(0, 0, 1, 2),Array(3, 3)) as Region from dataframe")