Method CreateAsync
CreateAsync(IEnumerable<string>, int, SpatialReference?, CancellationToken)
Creates a continuous field from one or more raster files.
Declaration
public static Task<ContinuousField> CreateAsync(IEnumerable<string> filePaths, int band, SpatialReference? spatialReference = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | filePaths | One or more raster file paths. |
| int | band | Zero-based index identifying a raster band. |
| SpatialReference | spatialReference | The spatial reference into which to project the raster content. Optional. |
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<ContinuousField> | A task ContinuousField created from raster files, or an error if creation of a ContinuousField is unsuccessful. |
Remarks
If no spatial reference is given, the spatial reference of the first raster file is used.
If a spatial reference is given, the raster content is projected into that spatial reference using the most suitable transformation available. Projection transforms only the horizontal coordinate system, not the field values.
The field extent is the union of the raster file extents.
Supports reading of all raster pixel types except 64-bit float. Throws an exception if creation of a ContinuousField is unsuccessful.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |