import ImageIdentifyParameters from "@arcgis/core/rest/support/ImageIdentifyParameters.js";const ImageIdentifyParameters = await $arcgis.import("@arcgis/core/rest/support/ImageIdentifyParameters.js");- Inheritance:
- ImageIdentifyParameters→
Accessor
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
| | ||
MosaicRule | null | undefined | | |
| | ||
| | ||
| | ||
RasterFunction[] | null | undefined | | |
| | ||
| | ||
| | ||
TimeExtent | null | undefined | |
mosaicRule
- Type
- MosaicRule | null | undefined
Specifies the mosaic rules defining the image sorting order.
When a mosaic rule is not specified, center is used.
pixelSize
Specifies the pixel level being identified on the x and y axis. Defaults to the base resolution of the dataset when not specified. The raster at the specified pixel size in the mosaic dataset will be used for the the ImageryLayer.identify() operation on an ImageryLayer.
Example
// set the pixel size parameter to match the current// resolution of the view and spatial referencelet pixelSize = { x:view.resolution, y:view.resolution, spatialReference: view.spatialReference}// set the identify parameters// data for the current view extent and resolutionlet params = new ImageIdentifyParameters({ geometry: view.extent, pixelSize: pixelSize});
// request info for a given location for the specified parameterslayer.identify(params).then((result) => { // results are returned and process it as needed. console.log("identify result", result);}).catch(function(error){ console.log("error", error)}); processAsMultidimensional
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 4.23
When true, the request is processed for all variables and dimensions. Pixel values from all slices
along with additional properties describing the slices, will be returned.
When false, the request is processed for the first or selected slices only. It is only applicable when the service is
multidimensional. This capability is only available with image services published with ArcGIS Server 10.9 or greater.
- Default value
- false
rasterFunction
- Type
- RasterFunction | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 4.27
Specifies the raster function for how the requested image should be processed.
rasterFunctions
- Type
- RasterFunction[] | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 4.27
An array the raster functions to retrieve multiple processed pixel values.
returnCatalogItems
- Type
- boolean
If true, returns both geometry and attributes of the catalog items.
Set to false when catalog items are not needed to significantly
improve identify operation's performance.
- Default value
- true
returnGeometry
- Type
- boolean
When true, each feature in the catalog items includes the geometry.
When false, the features will not display on the map.
- Default value
- true
returnPixelValues
- Type
- boolean
If true, the pixel values of all raster catalog items under the requested geometry.
Set to false when catalog item values are not needed to significantly
improve identify operation's performance.
- Default value
- true
timeExtent
- Type
- TimeExtent | null | undefined
A time extent for a temporal data against time-aware imagery layer. For example, it can be used to discover land cover changes by decade.
Methods
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.