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
dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer
The dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer instance to extend with this method.
options
dymaptic.GeoBlazor.Core.Options.CreatePopupTemplateOptions
Options for creating the popup template.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Popups.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.
param options.signal An AbortSignal to abort the request. If canceled, the promise will be rejected with an error named AbortError
. See also AbortController.
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
dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer
The dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer instance to extend with this method.
extent
dymaptic.GeoBlazor.Core.Components.Geometries.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
dymaptic.GeoBlazor.Core.Options.ImageryTileMixinFetchPixelsOptions
- options.interpolation: Added at version 4.23. Defines how to interpolate pixel values.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PixelData>
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
dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer
The dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer instance to extend with this method.
point
dymaptic.GeoBlazor.Core.Components.Geometries.Point
Input point that defines the location to be identified.
options
dymaptic.GeoBlazor.Core.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<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult](https://docs.microsoft.com/en-us/dotnet/api/dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult 'dymaptic.GeoBlazor.Core.Results.RasterIdentifyResult')[>](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.
param options.ignoreUnsupported Indicates whether to ignore saving unsupported layers or layers with unsupported content, such as unsupported symbology.
<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
dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer
The dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer instance to extend with this method.
options
WCSLayerSaveOptions
Various options for saving the layer.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.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.
param options.ignoreUnsupported Indicates whether to ignore saving unsupported layers or layers with unsupported content, such as unsupported symbology.
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
dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer
The dymaptic.GeoBlazor.Core.Components.Layers.WCSLayer instance to extend with this method.
portalItem
dymaptic.GeoBlazor.Core.Components.PortalItem
The portal item to which the layer will be saved.
options
WCSLayerSaveAsOptions
- options.folder: The portal folder where the layer’s portal item will be saved.
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.PortalItem>