Class SampleCoverageResult
Result of SampleCoverageService.
public sealed record SampleCoverageResult : IEquatable<SampleCoverageResult>
- Inheritance
-
SampleCoverageResult
- Implements
- Inherited Members
Constructors
SampleCoverageResult(DatasetId, double, double, SampledValue, IReadOnlyList<TimedSampledValue>?, string?, bool?, DateTimeOffset?, DateTimeOffset?)
Result of SampleCoverageService.
public SampleCoverageResult(DatasetId DatasetId, double Latitude, double Longitude, SampledValue Value, IReadOnlyList<TimedSampledValue>? Series = null, string? TimeStatus = null, bool? Truncated = null, DateTimeOffset? CoveredFrom = null, DateTimeOffset? CoveredTo = null)
Parameters
DatasetIdDatasetIdDataset that produced the sample.
LatitudedoubleLatitude that was requested, echoed back (decimal degrees, WGS-84).
LongitudedoubleLongitude that was requested, echoed back (decimal degrees, WGS-84).
ValueSampledValueTyped sample payload; discriminated on the JSON
$kindproperty.SeriesIReadOnlyList<TimedSampledValue>Optional per-time-step series, populated when the request's Times is a
RangeorSeriesand the matched dataset is a supported time-varying coverage. Null for single-instant queries, for S-102, and for station-series datasets (which currently honour only single-instant time selection).TimeStatusstringFor a single-instant request on a time-varying product, where the requested time fell relative to the sampled dataset's range — one of the SampleTimeStatus values.
before_start/after_endonly appear when the request opted into Nearest. Null when no time was requested, for S-102, and for windowed queries.Truncatedbool?For windowed queries,
truewhen the requested window reaches past the sampled dataset's time range so the series is shorter than requested. Null for single-instant queries.CoveredFromDateTimeOffset?For windowed queries, the start of the requested window clipped to the dataset's range.
CoveredToDateTimeOffset?For windowed queries, the end of the requested window clipped to the dataset's range.
Properties
CoveredFrom
For windowed queries, the start of the requested window clipped to the dataset's range.
public DateTimeOffset? CoveredFrom { get; init; }
Property Value
CoveredTo
For windowed queries, the end of the requested window clipped to the dataset's range.
public DateTimeOffset? CoveredTo { get; init; }
Property Value
DatasetId
Dataset that produced the sample.
public DatasetId DatasetId { get; init; }
Property Value
Latitude
Latitude that was requested, echoed back (decimal degrees, WGS-84).
public double Latitude { get; init; }
Property Value
Longitude
Longitude that was requested, echoed back (decimal degrees, WGS-84).
public double Longitude { get; init; }
Property Value
Series
Optional per-time-step series, populated when the request's
Times is a Range or Series
and the matched dataset is a supported time-varying coverage. Null for
single-instant queries, for S-102, and for station-series datasets (which
currently honour only single-instant time selection).
public IReadOnlyList<TimedSampledValue>? Series { get; init; }
Property Value
TimeStatus
For a single-instant request on a time-varying product, where the requested
time fell relative to the sampled dataset's range — one of the
SampleTimeStatus values. before_start / after_end
only appear when the request opted into Nearest.
Null when no time was requested, for S-102, and for windowed queries.
public string? TimeStatus { get; init; }
Property Value
Truncated
For windowed queries, true when the requested window reaches past the
sampled dataset's time range so the series is shorter than requested. Null for
single-instant queries.
public bool? Truncated { get; init; }
Property Value
- bool?
Value
Typed sample payload; discriminated on the JSON $kind property.
public SampledValue Value { get; init; }