dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components.Layers
ImageryTileLayerProExtensions Class
Pro Extension methods for the ImageryTileLayer class.
public static class ImageryTileLayerProExtensions
Inheritance System.Object 🡒 ImageryTileLayerProExtensions
Methods
ImageryTileLayerProExtensions.ComputeStatisticsHistograms(this ImageryTileLayer, Geometry, MosaicRule, Point, RasterFunction, TimeExtent, RequestOptions, CancellationToken) Method
Computes statistics and histograms for the provided ImageHistogramParameters. param requestOptions Additional options to be used for the data request (will override requestOptions defined during construction). ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<string?> ComputeStatisticsHistograms(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Geometry? geometry, dymaptic.GeoBlazor.Core.Model.MosaicRule? mosaicRule, dymaptic.GeoBlazor.Core.Components.Geometries.Point? pixelSize, dymaptic.GeoBlazor.Core.Components.RasterFunction? rasterFunction, dymaptic.GeoBlazor.Core.Components.TimeExtent? timeExtent, dymaptic.GeoBlazor.Core.Options.RequestOptions requestOptions, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
geometry Geometry
Input geometry that defines the area of interest for which the histograms and statistics will be computed. ArcGIS Maps SDK for JavaScript
mosaicRule MosaicRule
Specifies the mosaic rule on how individual images should be mosaicked when the histogram is computed. ArcGIS Maps SDK for JavaScript
pixelSize Point
Specifies the pixel size (or the resolution). ArcGIS Maps SDK for JavaScript
rasterFunction RasterFunction
Specifies the raster function from which to compute the statistics and histogram. ArcGIS Maps SDK for JavaScript
timeExtent TimeExtent
The time extent for which to compute the statistics and histogram. ArcGIS Maps SDK for JavaScript
requestOptions RequestOptions
Additional options to be used for the data request (will override requestOptions defined during construction).
cancellationToken System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<System.String>
ImageryTileLayerProExtensions.CreatePopupTemplate(this ImageryTileLayer, CreatePopupTemplateOptions) Method
Creates a default popup template for the layer, populated with all the fields of the layer. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Popups.PopupTemplate?> CreatePopupTemplate(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, dymaptic.GeoBlazor.Core.Options.CreatePopupTemplateOptions options);
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
options CreatePopupTemplateOptions
Options for creating the popup template.
Returns
System.Threading.Tasks.Task<PopupTemplate>
ImageryTileLayerProExtensions.FetchPixels(this ImageryTileLayer, Extent, int, int, ImageryTileMixinFetchPixelsOptions, CancellationToken) Method
Fetches pixels for a given extent. param width The width of the image in pixels. param options The parameter options is an object with the following properties. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PixelData?> FetchPixels(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Extent extent, int width, int height, dymaptic.GeoBlazor.Core.Options.ImageryTileMixinFetchPixelsOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
extent Extent
The extent of the image to export.
width System.Int32
The width of the image in pixels.
height System.Int32
The height of the image in pixels.
options ImageryTileMixinFetchPixelsOptions
The parameter options is an object with the following properties.
cancellationToken System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<PixelData>
ImageryTileLayerProExtensions.FetchTile(this ImageryTileLayer, double, double, double, CancellationToken) Method
This method fetches a tile for the given level, row and column present in the view. param row The row (y) position of the tile fetch. This value is provided by LayerView. param options Optional settings for the tile request. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<string?> FetchTile(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, double level, double row, double col, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
level System.Double
Level of detail of the tile to fetch. This value is provided by LayerView.
row System.Double
The row (y) position of the tile fetch. This value is provided by LayerView.
col System.Double
The column (x) position of the tile to fetch. This value is provided by LayerView.
cancellationToken System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<System.String>
ImageryTileLayerProExtensions.GenerateRasterInfo(this ImageryTileLayer, RasterFunction, CancellationToken) Method
Generates a new raster info for the specified client side raster function. param options An object with the following properties. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.RasterInfo?> GenerateRasterInfo(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, dymaptic.GeoBlazor.Core.Components.RasterFunction rasterFunction, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
rasterFunction RasterFunction
Raster function for the requested raster info.
cancellationToken System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<RasterInfo>
ImageryTileLayerProExtensions.GetSamples(this ImageryTileLayer, Nullable, IReadOnlyCollection, Nullable, Nullable, Nullable, Nullable, Geometry, IReadOnlyCollection, MosaicRule, Point, TimeExtent, RequestOptions, CancellationToken) Method
Returns sample point locations, pixel values and corresponding resolutions of the source data for a given geometry. param requestOptions Additional options to be used for the data request (will override requestOptions defined during construction). ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Results.ImageSampleResult?> GetSamples(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, System.Nullable<dymaptic.GeoBlazor.Core.Enums.Interpolation> interpolation, System.Collections.Generic.IReadOnlyCollection<string>? outFields, System.Nullable<bool> returnFirstValueOnly, System.Nullable<int> sampleCount, System.Nullable<double> sampleDistance, System.Nullable<long> sliceId, dymaptic.GeoBlazor.Core.Components.Geometries.Geometry? geometry, System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Components.Geometries.Point>? locations, dymaptic.GeoBlazor.Core.Model.MosaicRule? mosaicRule, dymaptic.GeoBlazor.Core.Components.Geometries.Point? pixelSize, dymaptic.GeoBlazor.Core.Components.TimeExtent? timeExtent, dymaptic.GeoBlazor.Core.Options.RequestOptions requestOptions, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
interpolation System.Nullable<Interpolation>
Defines how to interpolate pixel values. default "nearest" ArcGIS Maps SDK for JavaScript
outFields System.Collections.Generic.IReadOnlyCollection<System.String>
The list of fields associated with the rasters to be included in the response. default null ArcGIS Maps SDK for JavaScript
returnFirstValueOnly System.Nullable<System.Boolean>
When `true`, returns the first valid pixel value that meets specified conditions at each sampling point location. default true ArcGIS Maps SDK for JavaScript
sampleCount System.Nullable<System.Int32>
Specifies the approximate number of locations to sample from the provided geometry when the input geometry is polyline, polygon or extent. ArcGIS Maps SDK for JavaScript
sampleDistance System.Nullable<System.Double>
Specifies the distance interval to sample points from the provided geometry when input geometry is polyline. ArcGIS Maps SDK for JavaScript
sliceId System.Nullable<System.Int64>
Specifies the slice id of a multidimensional raster. ArcGIS Maps SDK for JavaScript
geometry Geometry
Input geometry that defines the locations to be sampled. ArcGIS Maps SDK for JavaScript
locations System.Collections.Generic.IReadOnlyCollection<Point>
When sampling multiple locations, you can use an array of points instead of providing a multipoint for the geometry property. ArcGIS Maps SDK for JavaScript
mosaicRule MosaicRule
Specifies the mosaic rule defining the image sort order and selection. ArcGIS Maps SDK for JavaScript
pixelSize Point
Specifies the pixel size (or the resolution) that will be used for the sampling. ArcGIS Maps SDK for JavaScript
timeExtent TimeExtent
The time extent for which to perform sampling. ArcGIS Maps SDK for JavaScript
requestOptions RequestOptions
cancellationToken System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<ImageSampleResult>
ImageryTileLayerProExtensions.Identify(this ImageryTileLayer, Point, RasterIdentifyOptions, CancellationToken) Method
Identify pixel values at a given location. param options Optional settings for the identify request. 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. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult?> Identify(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Point point, dymaptic.GeoBlazor.Core.Options.RasterIdentifyOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
point Point
Input point that defines the location to be identified.
options RasterIdentifyOptions
Optional settings for the identify request. At version 4.25, the
transposedVariableName
``` was added to get pixel values from specific dimensional definitions if the <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html">ImageryTileLayer</a>
references a <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#hasMultidimensionalTranspose">transposed multidimensional</a> image service.
Set the
```csharp
transposedVariableName
``` and
```csharp
multidimensionalDefinition
``` get pixel values for the specified dimensional definitions from a transposed multidimensional service.
If
```csharp
multidimensionalDefinition
``` is not specified, pixel values will be returned from all the dimensional slices.
<a name='dymaptic.GeoBlazor.Pro.Components.Layers.ImageryTileLayerProExtensions.Identify(thisdymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer,dymaptic.GeoBlazor.Core.Components.Geometries.Point,dymaptic.GeoBlazor.Core.Options.RasterIdentifyOptions,System.Threading.CancellationToken).cancellationToken'></a>
`cancellationToken` [System.Threading.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken 'System.Threading.CancellationToken')
The CancellationToken to cancel an asynchronous operation.
#### Returns
[System.Threading.Tasks.Task<](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System.Threading.Tasks.Task\`1')[RasterIdentifyResult](dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult.md 'dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult')[>](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System.Threading.Tasks.Task\`1')
<a name='dymaptic.GeoBlazor.Pro.Components.Layers.ImageryTileLayerProExtensions.Save(thisdymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer,dymaptic.GeoBlazor.Pro.Options.ImageryTileLayerSaveOptions)'></a>
## ImageryTileLayerProExtensions.Save(this ImageryTileLayer, ImageryTileLayerSaveOptions) Method
Saves the layer to its existing portal item in the <a target="_blank" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html">Portal</a>
authenticated within the user's current session.
<a target="_blank" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#save">ArcGIS Maps SDK for JavaScript</a>
```csharp
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem?> Save(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, dymaptic.GeoBlazor.Pro.Options.ImageryTileLayerSaveOptions options);
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
options ImageryTileLayerSaveOptions
Various options for saving the layer.
Returns
System.Threading.Tasks.Task<PortalItem>
ImageryTileLayerProExtensions.SaveAs(this ImageryTileLayer, PortalItem, ImageryTileLayerSaveAsOptions) Method
Saves the layer to a new portal item in the Portal authenticated within the user's current session. param options Various options for saving the layer. ArcGIS Maps SDK for JavaScript
public static System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem?> SaveAs(this dymaptic.GeoBlazor.Core.Components.Layers.ImageryTileLayer imageryTileLayer, dymaptic.GeoBlazor.Core.Components.PortalItem portalItem, dymaptic.GeoBlazor.Pro.Options.ImageryTileLayerSaveAsOptions options);
Parameters
imageryTileLayer ImageryTileLayer
The ImageryTileLayer instance to extend with this method.
portalItem PortalItem
The portal item to which the layer will be saved.
options ImageryTileLayerSaveAsOptions
Various options for saving the layer.