PlanetaryComputerModelFactory.RenderOptionLegend Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configuration for generating a data legend.
public static Azure.Analytics.PlanetaryComputer.RenderOptionLegend RenderOptionLegend(Azure.Analytics.PlanetaryComputer.LegendConfigKind? kind = default, System.Collections.Generic.IEnumerable<string> labels = default, int? trimStart = default, int? trimEnd = default, float? scaleFactor = default);
static member RenderOptionLegend : Nullable<Azure.Analytics.PlanetaryComputer.LegendConfigKind> * seq<string> * Nullable<int> * Nullable<int> * Nullable<single> -> Azure.Analytics.PlanetaryComputer.RenderOptionLegend
Public Shared Function RenderOptionLegend (Optional kind As Nullable(Of LegendConfigKind) = Nothing, Optional labels As IEnumerable(Of String) = Nothing, Optional trimStart As Nullable(Of Integer) = Nothing, Optional trimEnd As Nullable(Of Integer) = Nothing, Optional scaleFactor As Nullable(Of Single) = Nothing) As RenderOptionLegend
Parameters
- kind
- Nullable<LegendConfigKind>
Legend type to make,
one of: continuous,
classmap,
interval or none
(note, none is a string literal).
- labels
- IEnumerable<String>
Text labels to display on the legend.
The number of items to trim from the start of the legend definition. Used if there are values important for rendering (e.g. nodata) that aren't desirable in the legend.
A factor to multiply interval legend labels by. Useful for scaled rasters whose colormap definitions map to unscaled values, effectively showing legend labels as scaled values.
Returns
A new RenderOptionLegend instance for mocking.