Package com.luciad.earth.metadata.format
Class TLcdEarthClippedRasterAssetCodec
java.lang.Object
com.luciad.earth.metadata.format.TLcdEarthRasterAssetCodec
com.luciad.earth.metadata.format.TLcdEarthClippedRasterAssetCodec
- All Implemented Interfaces:
ILcdEarthAssetCodec
A codec for
TLcdEarthClippedRasterAsset
objects.- Since:
- 8.2
-
Field Summary
Fields inherited from interface com.luciad.earth.metadata.format.ILcdEarthAssetCodec
TYPE_NAME
-
Constructor Summary
ConstructorDescriptionTLcdEarthClippedRasterAssetCodec
(ILcdEarthNamedModelDecoderFactory aNamedModelDecoderFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecodeAsset
(Properties aProperties) Returns true if this codec can create an ILcdEarthAsset based on the given Properties object.boolean
canEncodeAsset
(ILcdEarthAsset aAsset) Returns true if this codec can create a Properties object for the given ILcdEarthAsset.protected TLcdEarthRasterAsset
createAsset
(Properties aProperties, String aSource, ILcdModelDecoder aModelDecoder, ILcdBounds aBounds, ILcdEarthTileSetCoverage.CoverageType aCoverageType, double aPixelDensity, Date aDate) Creates an raster asset with the given parameters.encodeAsset
(ILcdEarthAsset aAsset) Create a Properties object based on an ILcdEarthAssetReturns a user-displayable name for this codec.boolean
If the model decoder is an optional field the encoding/decoding will not fail either due to an invalid or unsupported clip model decoder.Methods inherited from class com.luciad.earth.metadata.format.TLcdEarthRasterAssetCodec
decodeAsset, getFormatNameForModelDecoder, getModelDecoderForFormatName, getNamedModelDecoderFactory, setModelDecoderOptional, setNamedModelDecoderFactory
-
Constructor Details
-
TLcdEarthClippedRasterAssetCodec
public TLcdEarthClippedRasterAssetCodec() -
TLcdEarthClippedRasterAssetCodec
public TLcdEarthClippedRasterAssetCodec(ILcdEarthNamedModelDecoderFactory aNamedModelDecoderFactory)
-
-
Method Details
-
encodeAsset
Description copied from interface:ILcdEarthAssetCodec
Create a Properties object based on an ILcdEarthAsset- Specified by:
encodeAsset
in interfaceILcdEarthAssetCodec
- Overrides:
encodeAsset
in classTLcdEarthRasterAssetCodec
- Parameters:
aAsset
- the asset to encode into a Properties object- Returns:
- a Properties object based on an ILcdEarthAsset
-
isModelDecoderOptional
public boolean isModelDecoderOptional()If the model decoder is an optional field the encoding/decoding will not fail either due to an invalid or unsupported clip model decoder.- Overrides:
isModelDecoderOptional
in classTLcdEarthRasterAssetCodec
- Returns:
- whether the model decoder is an optional field
-
createAsset
protected TLcdEarthRasterAsset createAsset(Properties aProperties, String aSource, ILcdModelDecoder aModelDecoder, ILcdBounds aBounds, ILcdEarthTileSetCoverage.CoverageType aCoverageType, double aPixelDensity, Date aDate) Description copied from class:TLcdEarthRasterAssetCodec
Creates an raster asset with the given parameters. TheaProperties
parameter corresponds to that ofdecodeAsset()
; the other parameters are values that have already been decoded from these properties.- Overrides:
createAsset
in classTLcdEarthRasterAssetCodec
- Parameters:
aProperties
- The asset properties.aSource
- The asset source name.aModelDecoder
- The asset model decoder.aBounds
- The asset bounds.aCoverageType
- The asset coverage type.aPixelDensity
- The asset pixel density.aDate
- The asset modification date.- Returns:
- A new raster asset.
-
canDecodeAsset
Description copied from interface:ILcdEarthAssetCodec
Returns true if this codec can create an ILcdEarthAsset based on the given Properties object.- Specified by:
canDecodeAsset
in interfaceILcdEarthAssetCodec
- Overrides:
canDecodeAsset
in classTLcdEarthRasterAssetCodec
- Parameters:
aProperties
- a Properties object representing an ILcdEarthAsset- Returns:
- true if the properties can be decoded by this codec
-
canEncodeAsset
Description copied from interface:ILcdEarthAssetCodec
Returns true if this codec can create a Properties object for the given ILcdEarthAsset.- Specified by:
canEncodeAsset
in interfaceILcdEarthAssetCodec
- Overrides:
canEncodeAsset
in classTLcdEarthRasterAssetCodec
- Parameters:
aAsset
- the ILcdEarthAsset to be encoded- Returns:
- true if this codec can encode the given asset
-
getDisplayName
Description copied from interface:ILcdEarthAssetCodec
Returns a user-displayable name for this codec.- Specified by:
getDisplayName
in interfaceILcdEarthAssetCodec
- Overrides:
getDisplayName
in classTLcdEarthRasterAssetCodec
- Returns:
- a user-displayable name for this codec
-