GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Layers

WCSLayerProExtensions Class

Pro Extension methods for the WCSLayer class.

public static class WCSLayerProExtensions

Inheritance System.Object 🡒 WCSLayerProExtensions

Methods

WCSLayerProExtensions.CreatePopupTemplate(this WCSLayer, 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.WCSLayer wCSLayer, dymaptic.GeoBlazor.Core.Options.CreatePopupTemplateOptions options);

Parameters

wCSLayer WCSLayer

The WCSLayer instance to extend with this method.

options CreatePopupTemplateOptions

Options for creating the popup template.

Returns

System.Threading.Tasks.Task<PopupTemplate>

WCSLayerProExtensions.FetchPixels(this WCSLayer, 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.WCSLayer wCSLayer, 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

wCSLayer WCSLayer

The WCSLayer 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>

WCSLayerProExtensions.GetSamples(this WCSLayer, ImageSampleParameters, 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.WCSLayer wCSLayer, dymaptic.GeoBlazor.Pro.Model.ImageSampleParameters parameters, dymaptic.GeoBlazor.Core.Options.RequestOptions requestOptions, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

wCSLayer WCSLayer

The WCSLayer instance to extend with this method.

parameters ImageSampleParameters

The parameters used in the getSamples operation.

requestOptions RequestOptions

cancellationToken System.Threading.CancellationToken

The CancellationToken to cancel an asynchronous operation.

Returns

System.Threading.Tasks.Task<ImageSampleResult>

WCSLayerProExtensions.Identify(this WCSLayer, 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.WCSLayer wCSLayer, dymaptic.GeoBlazor.Core.Components.Geometries.Point point, dymaptic.GeoBlazor.Core.Options.RasterIdentifyOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

wCSLayer WCSLayer

The WCSLayer 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.WCSLayerProExtensions.Identify(thisdymaptic.GeoBlazor.Core.Components.Layers.WCSLayer,dymaptic.GeoBlazor.Core.Components.Geometries.Point,dymaptic.GeoBlazor.Core.Options.RasterIdentifyOptions,System.Threading.CancellationToken).cancellationToken'></a>

`cancellationToken` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')

The CancellationToken to cancel an asynchronous operation.

#### Returns
[System.Threading.Tasks.Task&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task\`1')[RasterIdentifyResult](dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult.html 'dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task\`1')

<a name='dymaptic.GeoBlazor.Pro.Components.Layers.WCSLayerProExtensions.Save(thisdymaptic.GeoBlazor.Core.Components.Layers.WCSLayer,dymaptic.GeoBlazor.Pro.Options.WCSLayerSaveOptions)'></a>

## WCSLayerProExtensions.Save(this WCSLayer, WCSLayerSaveOptions) 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-WCSLayer.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.WCSLayer wCSLayer, dymaptic.GeoBlazor.Pro.Options.WCSLayerSaveOptions options);

Parameters

wCSLayer WCSLayer

The WCSLayer instance to extend with this method.

options WCSLayerSaveOptions

Various options for saving the layer.

Returns

System.Threading.Tasks.Task<PortalItem>

WCSLayerProExtensions.SaveAs(this WCSLayer, PortalItem, WCSLayerSaveAsOptions) 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.WCSLayer wCSLayer, dymaptic.GeoBlazor.Core.Components.PortalItem portalItem, dymaptic.GeoBlazor.Pro.Options.WCSLayerSaveAsOptions options);

Parameters

wCSLayer WCSLayer

The WCSLayer instance to extend with this method.

portalItem PortalItem

The portal item to which the layer will be saved.

options WCSLayerSaveAsOptions

Various options for saving the layer.

Returns

System.Threading.Tasks.Task<PortalItem>