public class TLcdImageModelHeightProviderFactory extends ALcdRasterModelHeightProviderFactory
ILcdHeightProvider
when an
ILcdModel
is given that contains elements of the type
ALcdBasicImage
, ALcdImageMosaic
or
ALcdMultilevelImageMosaic
.
When the model contains elements of type ILcdRaster
or
ILcdMultilevelRaster
, the factory will fall back to the legacy implementation in
TLcdRasterModelHeightProviderFactory
The height providers created by this factory are thread-safe. However when you need to retrieve the height at many
locations its usually more efficient to create a new height provider. This avoids cache conflicts between different
threads need different image data (e.g. tiles) to retrieve their heights.Modifier and Type | Field and Description |
---|---|
static String |
KEY_IMAGING_ENGINE
Key used to pass a user-defined imaging engine to the
TLcdImageHeightProviders created by this factory. |
KEY_INTERPOLATE_DATA, KEY_MAX_VALID_HEIGHT, KEY_MIN_VALID_HEIGHT, KEY_PIXEL_DENSITY
KEY_GEO_REFERENCE
Constructor and Description |
---|
TLcdImageModelHeightProviderFactory() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCreateHeightProvider(ILcdModel aModel)
Check if a height provider can be created from the given
ILcdModel . |
protected ILcdHeightProvider |
createModelElementHeightProvider(Object aElement,
Map<String,Object> aRequiredPropertiesSFCT,
Map<String,Object> aOptionalProperties)
Creates an
ILcdHeightProvider for the given model element. |
transformProperties
createHeightProvider
public static final String KEY_IMAGING_ENGINE
TLcdImageHeightProviders
created by this factory.
If defined, the property should be a ALcdImagingEngine
.
If not defined, a default imaging engine will be created for every height provider factory.protected ILcdHeightProvider createModelElementHeightProvider(Object aElement, Map<String,Object> aRequiredPropertiesSFCT, Map<String,Object> aOptionalProperties) throws TLcdMissingPropertyException, TLcdUnsupportedPropertyException
ALcdModelHeightProviderFactory
ILcdHeightProvider
for the given model element.createModelElementHeightProvider
in class ALcdRasterModelHeightProviderFactory
aElement
- a model element.aRequiredPropertiesSFCT
- the required properties.aOptionalProperties
- the optional properties.ILcdHeightProvider
for the given model element or null
if no ILcdHeightProvider
can be created.TLcdMissingPropertyException
- when a property is missing that is necessary to
create the ILcdHeightProvider
.TLcdUnsupportedPropertyException
- when a required property was never used while
creating the ILcdHeightProvider
.protected boolean canCreateHeightProvider(ILcdModel aModel)
ALcdRasterModelHeightProviderFactory
ILcdModel
. The default
implementation only returns true
if the model contains a TLcdRasterModelDescriptor
or a TLcdMultilevelRasterModelDescriptor
, and false
otherwise.canCreateHeightProvider
in class ALcdRasterModelHeightProviderFactory
aModel
- the given model.true
if a height provider can be created from the given model and
false
otherwise.