Class CoverageSamplerExtensions
Sampling of a single ICoverageSampler: at a point and time, over a time window, and along a polyline. Each is CoverageSampling with one dataset.
public static class CoverageSamplerExtensions
- Inheritance
-
CoverageSamplerExtensions
- Inherited Members
Methods
SampleAlong(ICoverageSampler, IEnumerable<(double Latitude, double Longitude)>, ICrsTransformFactory, DateTimeOffset?, bool)
Samples at each vertex of a polyline; see SampleAlong<TSource>(IReadOnlyList<CoverageSamplerEntry<TSource>>, IEnumerable<(double Latitude, double Longitude)>, ICrsTransformFactory, DateTimeOffset?, bool).
public static IReadOnlyList<CoverageSampleOutcome<ICoverageSampler>> SampleAlong(this ICoverageSampler sampler, IEnumerable<(double Latitude, double Longitude)> vertices, ICrsTransformFactory transforms, DateTimeOffset? time = null, bool nearestWhenOutOfRange = false)
Parameters
samplerICoverageSamplerThe dataset's sampler.
verticesIEnumerable<(double Latitude, double Longitude)>The polyline's vertices (decimal degrees, WGS-84).
transformsICrsTransformFactoryReprojects each vertex into the dataset's native CRS.
timeDateTimeOffset?The requested time, applied to every vertex;
nullfor the first step.nearestWhenOutOfRangeboolRead the nearest step, rather than fail, when the time is outside the dataset's range.
Returns
SampleAt(ICoverageSampler, CoverageSampleQuery, DateTimeOffset?, bool)
Samples at a point and time; see SampleAt<TSource>(IReadOnlyList<CoverageSamplerEntry<TSource>>, CoverageSampleQuery, DateTimeOffset?, bool).
public static CoverageSampleOutcome<ICoverageSampler> SampleAt(this ICoverageSampler sampler, CoverageSampleQuery query, DateTimeOffset? time = null, bool nearestWhenOutOfRange = false)
Parameters
samplerICoverageSamplerThe dataset's sampler.
queryCoverageSampleQueryThe point.
timeDateTimeOffset?The requested time, or
nullfor the first step.nearestWhenOutOfRangeboolRead the nearest step, rather than fail, when the time is outside the dataset's range.
Returns
SampleWindow(ICoverageSampler, CoverageSampleQuery, CoverageTimeWindow)
Samples over a range or series window; see SampleWindow<TSource>(IReadOnlyList<CoverageSamplerEntry<TSource>>, CoverageSampleQuery, CoverageTimeWindow).
public static CoverageSampleOutcome<ICoverageSampler> SampleWindow(this ICoverageSampler sampler, CoverageSampleQuery query, CoverageTimeWindow window)
Parameters
samplerICoverageSamplerThe dataset's sampler.
queryCoverageSampleQueryThe point.
windowCoverageTimeWindowThe window.