Visualizing LuciadFusion coverages on a Lightspeed view requires the same two steps as the majority of the formats:
Decode the coverage into an
ILcdModelDecoder. This requires both the URI of the server as the ID of the coverage. See How to find the available coverages in a tile store for more info on how to find the available coverage ids.
//First create the model //Start by creating a TLcdCoverageDataSource for the coverage String tileStoreURL = "http://sampleservices.luciad.com/lts"; String coverageID = "92c09725-a9c5-46fb-bffd-d9e23b4abbf2"; TLcdCoverageDataSource dataSource = new TLcdCoverageDataSource(tileStoreURL, coverageID); //Decode the model by passing the datasource to the model decoder ILcdModelDecoder decoder = new TLcdCompositeModelDecoder(TLcdServiceLoader.getInstance(ILcdModelDecoder.class)); ILcdModel model = decoder.decodeSource(dataSource); //Create a layer for the model with default styling ILspLayer layer = TLspRasterLayerBuilder.newBuilder() .model(model) .build(); //Add the layer to the Lightspeed view (an ILspView) view.addLayer(layer);
This results in a LuciadFusion coverages layer with default styling. See Visualizing Raster Data for more information about visualizing and styling raster data.