Table of Contents

Class RasterWindowReadResult

Namespace
Honua.Sdk.Abstractions.Data
Assembly
Honua.Sdk.Abstractions.dll

Result of a windowed raster read. Owns the response-backed content stream; dispose it when done.

public sealed class RasterWindowReadResult : IDisposable, IAsyncDisposable
Inheritance
RasterWindowReadResult
Implements
Inherited Members

Constructors

RasterWindowReadResult(Stream, SpatialDataSource, FeatureBoundingBox?, int?, int?, string?, long?)

Initializes a new instance of the RasterWindowReadResult class.

public RasterWindowReadResult(Stream content, SpatialDataSource source, FeatureBoundingBox? extent, int? width, int? height, string? contentType, long? contentLength)

Parameters

content Stream

The raster window content stream (owned by this result).

source SpatialDataSource

Source that produced the window.

extent FeatureBoundingBox

Extent covered by the returned window.

width int?

Window width in pixels.

height int?

Window height in pixels.

contentType string

Response content type.

contentLength long?

Response content length, when reported.

Properties

Content

The raster window stream. Disposing this result disposes the stream.

public Stream Content { get; }

Property Value

Stream

ContentLength

Response content length, when reported by the provider.

public long? ContentLength { get; }

Property Value

long?

ContentType

Response content type (e.g. image/tiff).

public string? ContentType { get; }

Property Value

string

Extent

Extent covered by the returned window, when known.

public FeatureBoundingBox? Extent { get; }

Property Value

FeatureBoundingBox

Height

Window height in pixels, when known.

public int? Height { get; }

Property Value

int?

Source

Source that produced the window.

public SpatialDataSource Source { get; }

Property Value

SpatialDataSource

Width

Window width in pixels, when known.

public int? Width { get; }

Property Value

int?

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.