Class TLspBUFRLayerBuilder

java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
com.luciad.format.bufr.lightspeed.TLspBUFRLayerBuilder

public final class TLspBUFRLayerBuilder extends ALspLayerBuilder

Layer builder for BUFR models. It implements standard BUFR/SIGWX visualization of a BUFR data model.

An example of how to use this builder:

    ILspLayer layer = TLspBUFRLayerBuilder.newBuilder()
                                          .model(model)
                                          .label("My BUFR layer")
                                          .build();

An example of how to add styling to a layer using this builder:

    TLcdBUFRStyleSettings styleSettings = TLcdBUFRStyleSettings
        .newBuilder()
        .sigwxStyleSettings(
            TLcdSIGWXStyleSettings
                .newBuilder()
                .cloudBorderColor(new Color(205, 0, 0))
                .cloudBorderLineWidth(1)
                .jetStreamLineColor(new Color(0, 139, 0))
                .jetStreamLineWidth(3)
                .jetStreamWindSymbolColor(new Color(0, 139, 0))
                .jetStreamLabelForegroundColor(new Color(0, 139, 0))
                .clearAirTurbulenceBorderColor(new Color(255, 255, 0))
                .clearAirTurbulenceBorderLineWidth(2)
                .volcanoLabelForegroundColor(Color.white)
                .volcanoIconColor(Color.red)
                .radiationIconColor(Color.red)
                .radiationLabelForegroundColor(Color.white)
                .stormIconColor(Color.red)
                .stormLabelForegroundColor(Color.white)
                .build())
        .build();

    ILspLayer styledLayer = TLspBUFRLayerBuilder.newBuilder()
                                                .model(model)
                                                .styleSettings(styleSettings)
                                                .label("My styled BUFR layer")
                                                .build();

Note that this layer builder cannot handle model tree nodes. In order to visualize a model tree node with multiple BUFR leaf models, one can create a layer tree node for the model tree node, and use this layer builder for the leaf BUFR models. See the Visualize BUFR data on a Lightspeed map tutorial for an example.

Since:
2020.0