Package com.luciad.ogc.common
Interface ILcdOGCModelDecoderFactory
- All Known Subinterfaces:
ILcdModelDecoderFactory
- All Known Implementing Classes:
TLcdModelDecoderFactory,TLcdOGCModelDecoderFactory
public interface ILcdOGCModelDecoderFactory
Interface defining the method to create a new
ILcdModelDecoder
for a given source.-
Method Summary
Modifier and TypeMethodDescriptiondefault ILcdModelDecodercreateModelDecoder(ILcdDataSource aDataSource) Creates a newILcdModelDecoderthat can decode the specified data source.createModelDecoder(String aSource) Creates a newILcdModelDecoderthat can decode the specified source.
-
Method Details
-
createModelDecoder
Creates a newILcdModelDecoderthat can decode the specified source. Note that models produced by this decoder must implementILcd2DBoundsIndexedModel, and the model descriptor must be anILcdFeaturedDescriptor.- Parameters:
aSource- the source to obtain aILcdModelDecoderfor.- Returns:
- a new
ILcdModelDecoderthat can decode the specified source. - Throws:
IllegalArgumentException- if there is noILcdModelDecoderknown for this source.
-
createModelDecoder
default ILcdModelDecoder createModelDecoder(ILcdDataSource aDataSource) throws IllegalArgumentException Creates a new
ILcdModelDecoderthat can decode the specified data source.By default, this method checks if the given
ILcdDataSourceis aTLcdDataSource. If so, it delegates to thecreateModelDecoder(String)method. If not, anIllegalArgumentExceptionis thrown.- Parameters:
aDataSource- the data source to obtain aILcdModelDecoderfor.- Returns:
- a new
ILcdModelDecoderthat can decode the specified source. - Throws:
IllegalArgumentException- if there is noILcdModelDecoderknown for this source.- Since:
- 2017.0
-