Class PortrayalPipeline
Façade that drives the appropriate inner portrayal pipeline (VectorPipeline for feature-based products, CoveragePipeline for gridded coverage products) and returns the result as the unified IPortrayalLayer type.
public sealed class PortrayalPipeline
- Inheritance
-
PortrayalPipeline
- Inherited Members
Remarks
Use the strongly-typed ProcessAsync overloads when you know which
kind of source you have. Callers that need to dispatch on the produced
layer type can pattern-match the returned IPortrayalLayer
against IVectorLayer or StyledCoverageLayer.
Constructors
PortrayalPipeline(IVectorRuleExecutor?)
Creates the façade and its inner vector and coverage pipelines.
public PortrayalPipeline(IVectorRuleExecutor? luaExecutor = null)
Parameters
luaExecutorIVectorRuleExecutorOptional Lua rule executor passed to the inner VectorPipeline; when null vector portrayal runs XSLT rules only.
Methods
ProcessAsync(ICoverageSource, ICoverageStyle, Viewport?, ICrsTransform?, MarinerSettings?, CancellationToken)
Drives the coverage portrayal pipeline and returns the result as an IPortrayalLayer. The runtime type is StyledCoverageLayer.
public Task<IPortrayalLayer> ProcessAsync(ICoverageSource source, ICoverageStyle style, Viewport? viewport = null, ICrsTransform? wgs84ToNative = null, MarinerSettings? mariner = null, CancellationToken cancellationToken = default)
Parameters
sourceICoverageSourceThe coverage source.
styleICoverageStyleThe coverage style.
viewportViewportOptional map viewport for viewport-scoped sampling (issue #487). When null the full grid is sampled.
wgs84ToNativeICrsTransformOptional CRS transform from WGS-84 to the grid's native CRS. Required when
viewportis supplied and the grid CRS is not EPSG:4326.marinerMarinerSettingsOptional mariner settings.
cancellationTokenCancellationTokenCancellation token.
Returns
ProcessAsync(IFeatureXmlSource, IVectorPortrayalCatalogue, Viewport?, MarinerSettings?, CancellationToken)
Drives the vector portrayal pipeline and returns the result as an IPortrayalLayer. The runtime type is IVectorLayer.
public Task<IPortrayalLayer> ProcessAsync(IFeatureXmlSource source, IVectorPortrayalCatalogue catalogue, Viewport? viewport = null, MarinerSettings? mariner = null, CancellationToken cancellationToken = default)
Parameters
sourceIFeatureXmlSourcecatalogueIVectorPortrayalCatalogueviewportViewportmarinerMarinerSettingscancellationTokenCancellationToken