Visualizing LuciadFusion coverages on a GXY 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 ILcdGXYLayer layer = TLcdGXYLayer.create(model); //Wrap the layer with an async layer wrapper to ensure //that the view remains responsive while data is being painted layer = ILcdGXYAsynchronousLayerWrapper.create(layer); //Add the async layer to the GXY view (an ILcdGXYView) view.addGXYLayer(layer);
This results in a LuciadFusion coverages layer with default styling. See Visualizing Raster Data for more information about visualizing and styling raster data.