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
contentStreamThe raster window content stream (owned by this result).
sourceSpatialDataSourceSource that produced the window.
extentFeatureBoundingBoxExtent covered by the returned window.
widthint?Window width in pixels.
heightint?Window height in pixels.
contentTypestringResponse content type.
contentLengthlong?Response content length, when reported.
Properties
Content
The raster window stream. Disposing this result disposes the stream.
public Stream Content { get; }
Property Value
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
Extent
Extent covered by the returned window, when known.
public FeatureBoundingBox? Extent { get; }
Property Value
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
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.