Package com.luciad.earth.model
Interface ILcdEarthModelDecoderFactory
- All Known Subinterfaces:
ILfnDataSourceModelDecoderFactory
public interface ILcdEarthModelDecoderFactory
A factory to create model decoders.
- Since:
- 10.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Key used for anILcdBuffer
property.static final String
Key used for aString
property that represents the (unique) data model name.static final String
Key used for aILcdBounds
property that represents the decoding bounds.static final String
Key used for anILcdInputStreamFactory
property.static final String
Key used for anILcdInputStreamFactory
property that creates seekable input streams. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecodeSource
(String aSource) Checks whether this factory's model decoders can decode a source.createModelDecoder
(String aSourceName, Map<String, Object> aProperties) Creates a model decoder for a source.getName()
Gets the name of this model decoder factory.
-
Field Details
-
KEY_INPUT_STREAM_FACTORY
Key used for anILcdInputStreamFactory
property. The factory is used for creating the input streams from which the model is read.The value of the property is an
ILcdInputStreamFactory
.- See Also:
-
KEY_BUFFER
Key used for anILcdBuffer
property. The buffer is can be used for allocating memory segments needed for reading or caching data.The value of the property is an
ILcdBuffer
.- See Also:
-
KEY_SEEKABLE_INPUT_STREAM_FACTORY
Key used for anILcdInputStreamFactory
property that creates seekable input streams. The factory can be used for the same purposes as the factory ofKEY_INPUT_STREAM_FACTORY
. The only difference is that the factory of this key is guaranteed to create input streams that extendSeekableStream
.- See Also:
-
KEY_DATA_MODEL_NAME
Key used for aString
property that represents the (unique) data model name. When supported, the model decoder will create a model with a data model of this name. This property can be used to share data models across multiple models, as data models are identified solely by their name. The model decoder may reuse an existing instance of the data model or it may create a new one each time.The value of the property is a
String
.- Since:
- 10.1
- See Also:
-
KEY_DECODING_BOUNDS
Key used for aILcdBounds
property that represents the decoding bounds. When supported, the model decoder will create a model constrained by these bounds. Beware that it is silently assumed that the bounds are in the model's reference, so you must make sure to transform the bounds before passing them as property.The value of the property is a
ILcdBounds
.- Since:
- 11.0
- See Also:
-
-
Method Details
-
getName
String getName()Gets the name of this model decoder factory.- Returns:
- name
-
canDecodeSource
Checks whether this factory's model decoders can decode a source.- Parameters:
aSource
- the source- Returns:
true
when decoding is possible,false
otherwise
-
createModelDecoder
Creates a model decoder for a source. Optionally, properties may be specified to configure the model decoder. The properties are implementation specific.- Parameters:
aSourceName
- the sourceaProperties
- the properties for configuring the model decoder, may benull
- Returns:
- a model decoder
-