For some use cases, you do not need to load data on the map. You just need to decode certain data into an ILcdModel
. For example, you simply want to analyze a model to find the highest point.
Because all model decoders are registered with the Lucy back-end, you can use them to decode your data set.
The easiest way to loop over all the registered decoders and select the appropriate one, is using a TLcyCompositeModelDecoder
instance:
Program: Decoding a data set using the model decoders available on the Lucy back-end
String path = "/path/to/file/to/decode";
ILcyLucyEnv lucy = ...
TLcyCompositeModelDecoder decoder = new TLcyCompositeModelDecoder(lucy);
if(decoder.canDecode(path)){
ILcdModel model = decoder.decode(path);
}