migration details
. (since 2013.0)@Deprecated public class TLfnEngineFactory.RasterSessionBuilder extends Object
TLfnEngineFactory.newRasterSessionBuilder()
public TLfnEngineFactory.RasterSessionBuilder tileStore(ALfnTileStore aTileStore)
aTileStore
- the Tile Store@Deprecated public TLfnEngineFactory.RasterSessionBuilder setTileStore(ALfnTileStore aTileStore)
tileStore(ALfnTileStore)
instead (since 2013.0)public TLfnEngineFactory.RasterSessionBuilder assets(List<TLfnRasterAssetMetadata> aSourceAssetMetadatas)
Note that the specified order of the assets is not relevant.
By default raster asset parts are ordered by their the pixel density.
To set a different fusion order, see TLfnRasterCoverageMetadata.Builder.preserveAssetOrder(boolean)
.
aSourceAssetMetadatas
- the list of asset metadata@Deprecated public TLfnEngineFactory.RasterSessionBuilder setSourceAssetMetadatas(List<TLfnRasterAssetMetadata> aSourceAssetMetadatas)
assets(java.util.List)
insteadpublic TLfnEngineFactory.RasterSessionBuilder coverage(TLfnRasterCoverageMetadata aTargetCoverageMetadata)
ALfnEnvironment.getTileDataCodecs(com.luciad.fusion.tilestore.ELfnDataType)
ALfnEngineEnvironment.getDefaultTileSize(com.luciad.fusion.tilestore.ELfnDataType)
aTargetCoverageMetadata
- the target coverage metadata@Deprecated public TLfnEngineFactory.RasterSessionBuilder setTargetCoverageMetadata(TLfnRasterCoverageMetadata aTargetCoverageMetadata)
coverage(TLfnRasterCoverageMetadata)
insteadpublic TLfnEngineFactory.RasterSessionBuilder checkpointInterval(long aCheckpointInterval)
Special value -1
indicates that no checkpoints should be saved, not even
when the engine session is cancelled.
aCheckpointInterval
- the checkpoint interval (in milliseconds), or -1 to disable checkpoints@Deprecated public TLfnEngineFactory.RasterSessionBuilder setCheckpointInterval(long aCheckpointInterval)
checkpointInterval(long)
instead@Deprecated public TLfnEngineFactory.RasterSessionBuilder setLevelsToProduce(int[] aLevelsToProduce)
TLfnRasterCoverageMetadata.Builder.levelsToProduce(int[])
null
, which means that combining data is always allowed, and
only the most detailed levels will be produced.
Producing more than just the most detailed level is useful in certain circumstances:
ALfnTileStore.CommitPolicy.PER_COVERAGE
in combination with
saving of checkpoints.TLfnEngineFactory.ALL_LEVELS
which selects all levels.aLevelsToProduce
- the levels in the coverage that must be produced from source data, or null
to always combine if
possiblepublic TLfnEngineFactory.RasterSessionBuilder assetPartOrder(Comparator<TLcdPair<ALfnAssetMetadata.AssetPart,ALfnAssetMetadata>> aComparator)
Note that complete assets are always below the incomplete assets.
By default, raster asset parts are ordered by their the pixel density. In order to compare the pixel densities, they are all transformed to the geographic reference of the target coverage. This involves transformation of bounding boxes, which is may be a crude approximation. As a result, the default ordering may yield unexpected results, especially when the pixel densities of the asset parts are very close to each other to begin with.
The difference with this method and setAssetOrder(java.util.List<com.luciad.fusion.tilestore.metadata.TLfnRasterAssetMetadata>)
is that this one overwrites any existing order, while the latter superimposes a list order on top of any existing order.
aComparator
- the comparator that defines the order of the asset parts, or null
to reset to the default (pixel density based) asset part order@Deprecated public TLfnEngineFactory.RasterSessionBuilder setAssetPartOrder(Comparator<TLcdPair<ALfnAssetMetadata.AssetPart,ALfnAssetMetadata>> aComparator)
assetPartOrder(java.util.Comparator)
instead@Deprecated public TLfnEngineFactory.RasterSessionBuilder setAssetOrder(List<TLfnRasterAssetMetadata> aListOrder)
TLfnRasterCoverageMetadata.Builder.preserveAssetOrder(boolean)
instead (since 2013.0)null
.
The asset order defines the visibility of the different assets in the target coverage.
If present, the asset order takes precedence over the asset part order: assets with higher order are visible over those with lower order (according to the asset order).
Within a single asset, asset parts with higher order are visible over those with lower order according to the asset part order.
If no asset order has been defined, the asset part order alone defines visibility of all asset parts across all assets.
The list order acts as a major order, while retaining the current asset part ordering as minor order. The first asset will be the lowest, the last will be the highest and always visible.
aListOrder
- an ordered list of assets, or null
to clear the asset ordersetAssetPartOrder(java.util.Comparator)
@Deprecated public TLfnEngineFactory.RasterSessionBuilder setRasterSessionHandler(ILfnRasterSessionHandler aFailureHandler)
ALfnEngine.addSessionHandler(com.luciad.fusion.engine.raster.ILfnRasterSessionHandler)
instead (since 2013.0)aFailureHandler
- the handlerpublic TLfnEngineFactory.RasterSessionBuilder tileCombiningStrategy(TLfnEngineFactory.TileCombiningStrategy aStrategy)
N
into a single tile of level
N - 1
.
The default tile combining strategy is AVERAGE
. For coverage type IMAGE
,
it is the only supported strategy. The tile combining strategy MAXIMUM
is only supported for coverage
type ELEVATION
.
This feature can only be used with local engines. There is no equivalent configuration method on the coverage
metadata builder.public ILfnEngineSession build() throws IOException, TLfnServiceException
IOException
- if the source or target data cannot be accessedTLfnServiceException
- if a failure happens on the remote Tile Store