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 ILcdModelDecoder
createModelDecoder
(ILcdDataSource aDataSource) Creates a newILcdModelDecoder
that can decode the specified data source.createModelDecoder
(String aSource) Creates a newILcdModelDecoder
that can decode the specified source.
-
Method Details
-
createModelDecoder
Creates a newILcdModelDecoder
that 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 aILcdModelDecoder
for.- Returns:
- a new
ILcdModelDecoder
that can decode the specified source. - Throws:
IllegalArgumentException
- if there is noILcdModelDecoder
known for this source.
-
createModelDecoder
default ILcdModelDecoder createModelDecoder(ILcdDataSource aDataSource) throws IllegalArgumentException Creates a new
ILcdModelDecoder
that can decode the specified data source.By default, this method checks if the given
ILcdDataSource
is aTLcdDataSource
. If so, it delegates to thecreateModelDecoder(String)
method. If not, anIllegalArgumentException
is thrown.- Parameters:
aDataSource
- the data source to obtain aILcdModelDecoder
for.- Returns:
- a new
ILcdModelDecoder
that can decode the specified source. - Throws:
IllegalArgumentException
- if there is noILcdModelDecoder
known for this source.- Since:
- 2017.0
-