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
ConstructorsConstructorDescriptionTLcdEarthClippedRasterAssetCodec(ILcdEarthNamedModelDecoderFactory aNamedModelDecoderFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDecodeAsset(Properties aProperties) Returns true if this codec can create an ILcdEarthAsset based on the given Properties object.booleancanEncodeAsset(ILcdEarthAsset aAsset) Returns true if this codec can create a Properties object for the given ILcdEarthAsset.protected TLcdEarthRasterAssetcreateAsset(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.booleanIf 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:ILcdEarthAssetCodecCreate a Properties object based on an ILcdEarthAsset- Specified by:
encodeAssetin interfaceILcdEarthAssetCodec- Overrides:
encodeAssetin 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:
isModelDecoderOptionalin 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:TLcdEarthRasterAssetCodecCreates an raster asset with the given parameters. TheaPropertiesparameter corresponds to that ofdecodeAsset(); the other parameters are values that have already been decoded from these properties.- Overrides:
createAssetin 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:ILcdEarthAssetCodecReturns true if this codec can create an ILcdEarthAsset based on the given Properties object.- Specified by:
canDecodeAssetin interfaceILcdEarthAssetCodec- Overrides:
canDecodeAssetin 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:ILcdEarthAssetCodecReturns true if this codec can create a Properties object for the given ILcdEarthAsset.- Specified by:
canEncodeAssetin interfaceILcdEarthAssetCodec- Overrides:
canEncodeAssetin classTLcdEarthRasterAssetCodec- Parameters:
aAsset- the ILcdEarthAsset to be encoded- Returns:
- true if this codec can encode the given asset
-
getDisplayName
Description copied from interface:ILcdEarthAssetCodecReturns a user-displayable name for this codec.- Specified by:
getDisplayNamein interfaceILcdEarthAssetCodec- Overrides:
getDisplayNamein classTLcdEarthRasterAssetCodec- Returns:
- a user-displayable name for this codec
-