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, 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.WCSLayer wCSLayer, 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
wCSLayer WCSLayer
The WCSLayer 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>
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://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.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.