import type { RasterInterpolation, BandValuesArray, RasterPixelType, RasterCommonPixelType, RasterFormats } from "@arcgis/core/layers/raster/types.js";Type definitions
RasterInterpolation
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies how raster values are resampled.
- See also
- Type
- "nearest" | "bilinear" | "cubic" | "majority"
BandValuesArray
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines numeric arrays that can represent raster pixel values.
- See also
- Type
- Int8Array<ArrayBuffer> | Uint8Array<ArrayBuffer> | Uint8ClampedArray<ArrayBuffer> | Int16Array<ArrayBuffer> | Uint16Array<ArrayBuffer> | Int32Array<ArrayBuffer> | Uint32Array<ArrayBuffer> | Float32Array<ArrayBuffer> | Float64Array<ArrayBuffer> | number[]
RasterPixelType
- Type
- "unknown" | "u1" | "u2" | "u4" | "u8" | "s8" | "u16" | "s16" | "u32" | "s32" | "f32" | "f64" | "c64" | "c128"
RasterCommonPixelType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The common output pixel type.
- Type
- "unknown" | "u8" | "s8" | "u16" | "s16" | "u32" | "s32" | "f32" | "f64"
RasterFormats
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Lists supported output formats for imagery export and requests.
- See also
- Type
- "lerc" | "jpg" | "jpgpng" | "png" | "png8" | "png24" | "png32" | "bip" | "bsq" | "tiff" | "bmp" | "gif"
RasterNoDataInterpretation
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Specifies how NoData values are interpreted across multiple bands.
- Type
- "any" | "all"
RasterDataType
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Identifies the category of raster data returned by an imagery source.
- See also
- Type
- "generic" | "elevation" | "thematic" | "processed" | "scientific" | "standard-time" | "vector-uv" | "vector-u" | "vector-v" | "vector-magdir" | "vector-magnitude" | "vector-direction"
PixelSize
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes pixel size along the x and y axes.
- See also
RasterSliceValue
- Since
- ArcGIS Maps SDK for JavaScript 4.25
Data series returned in RasterIdentifyResult when ImageryTileLayer.identify() is called on a transposed multidimensional ImageryTileLayer.
multidimensionalDefinition
- Type
- DimensionalDefinition[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A dimensional definition associated with a given slice.
RasterIdentifyResult
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The result of identify operation on ImageryTileLayer.identify() and WCSLayer.identify().
It includes the processed pixel values for a given location.
processedValue
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The processed pixel values showing results of the ImageryTileLayer.rasterFunction applied to the layer. Added since version 4.26.
dataSeries
- Type
- RasterSliceValue[] | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Transposed multidimensional data for the requested location and variable returned from a transposed multidimensional ImageryTileLayer.identify(). Added since version 4.25.
PixelData
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An object that provides the user access to PixelBlock.pixels and their values in the layer. See the object specifications table below for details about each property. This object is used as input in the ImageryLayer.pixelFilter function for filtering and processing each pixel in the block.
- See also
pixelBlock
- Type
- PixelBlock | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
An object representing the pixels in the view. This provides the user access to each pixel on the client via the pixels property of this object.
RasterBandStatistics
- Since
- ArcGIS Maps SDK for JavaScript 4.18
Raster statistics information returned that meets the specified ImageHistogramParameters
from the computeStatisticsHistograms() method on ImageryLayer.computeStatisticsHistograms() or ImageryTileLayer.computeStatisticsHistograms().
RasterHistogram
- Since
- ArcGIS Maps SDK for JavaScript 4.18
Raster histogram information returned that meets the specified ImageHistogramParameters from the ImageryLayer.computeHistograms() or ImageryLayer.computeStatisticsHistograms() method.
min
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The minimum pixel value of the histogram. Matches the minimum bound of the first bin.
max
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The maximum pixel value of the histogram. Matches the maximum bound of the last bin.
counts
- Type
- number[] | Uint32Array
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Count of pixels that fall into each bin.
RasterDimensionalInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A dimension may be used to represent real physical dimensions such as time or depth/height. It may also be used to represent more abstract quantities such as station id or station-time pair. For example, if your temperature data has a corresponding Date dimension field representing the day it was captured, and your salinity data has a Depth dimension field representing the depth at which it was measured, the Dimensions field for that variable would be Date and Depth.
RasterMultidimensionalInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
RasterMultidimensionalInfo contains dimensions for each variable in the service describing information about the images collected at multiple times, depths, or heights.
variables
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The multi dimensional variables. It stores information such as name, unit and dimensions. For example, a temperature variable can store temperature data and the salinity variable can store the salinity data measured daily at different depths.
- Example
- // update the statistics of the layer's stretch renderer.const renderer = layer.renderer.clone();const dimensions = layer.rasterInfo.multidimensionalInfo;// get the salinity variable's statisticsconst salinity = dimensions.variables.find((variable) => variable.name === variableName);renderer.customStatistics = salinity.statistics;layer.renderer = renderer;
RasterMultidimensionalInfoVariable
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Describes a variable in multidimensional raster data.
dimensions
- Type
- RasterDimensionalInfo[]
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A dimension may be used to represent real physical dimensions such as time or depth/height. It may also be used to represent more abstract quantities such as station id or station-time pair. For example, if your temperature data has a corresponding Date dimension field representing the day it was captured, and your salinity data has a Depth dimension field representing the depth at which it was measured, the Dimensions field for that variable would be Date and Depth.
histograms
- Type
- RasterHistogram[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Variable histograms.
statistics
- Type
- RasterBandStatistics[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Variable statistics.
ServiceRasterFunctionInfo
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The raster function published with the image service.
description
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Description of the raster function.
help
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Additional info describing what the raster function does.
functionType
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The function type. Possible values: //0 = Mosaic, 1 = Item, 2 = Item Group.
thumbnail
- Type
- string
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Inline base64 encoded thumbnail of the raster function.
FetchRasterOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Options for fetching raster pixel data from imagery tile layers.
- Supertypes
- AbortOptions
interpolation
- Type
- RasterInterpolation | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Added at version 4.23. Defines how to interpolate pixel values.
DynamicFetchRasterOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Options for fetching raster pixel data from dynamic imagery services.
- See also
- Supertypes
- AbortOptions
interpolation
- Type
- RasterInterpolation | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Defines how to interpolate pixel values.
RasterIdentifyOptions
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Additional options to set for identify() method on ImageryTileLayer.identify() and WCSLayer.identify().
At version 4.25, the transposedVariableName was added to get pixel values from specific dimensional definitions if the ImageryTileLayer
references a transposed multidimensional image service.
Set the transposedVariableName and multidimensionalDefinition get pixel values for the specified dimensional definitions from a transposed multidimensional service.
If multidimensionalDefinition is not specified, pixel values will be returned from all the dimensional slices.
- Supertypes
- AbortOptions
multidimensionalDefinition
- Type
- DimensionalDefinition[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 5.0
A dimensional definition used for the identify operation.
For non-transposed multidimensional ImageryTileLayer.identify() and for WCSLayer.identify(), the identify
operation returns a value for only one dimensional slice at a time.
For transposed multidimensional ImageryTileLayer, identify returns values for all or specified dimensional slices.
transposedVariableName
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Name of the transposed variable. This option is only honored if the ImageryTileLayer's
serviceRasterInfo.hasMultidimensionalTranspose is true. Added since 4.25.