public interface ILcdWCSModelEncoderFactory
ILcdRasterelements to models containing
ALcdMultilevelImageMosaicbased on output resolution, and fall back to less detailed levels in case of missing tiles or no-data-values.
ALcdImageelements into a single
ILcdModelEncoder.export(ILcdModel, String)with a model that has a single
ALcdBasicImage. Model encoders created by this factory should be able to export such a model. They do not need to be able to export models that have
ALcdMultilevelImageMosaic, but they may.
ILcdModelEncoder.save(ILcdModel). Model encoder implementations may safely throw
UnsupportedOperationExceptions for those methods.
ILcdModelEncoder.canExport(ILcdModel, String)is an optimistic check that has the semantics of a 'maybe'. It is a quick check to see if it's worthwhile to try and export a model. Implementations should return
falseif they cannot export a model, but they may return
truein case of doubt. The actual
ILcdModelEncoder.export(ILcdModel, String)may then still throw an
IllegalArgumentExceptionto indicate that the model could not be exported after all.
ALcdBasicImagemay have an arbitrary number of bands of a variety of data types, see
ALcdBandSemantics.DataType. Implementations may have limits to what is allowed here, and should throw
IllegalArgumentExceptionwhen they can't export a model.
TLcdGeoTIFFModelEncoder. The produced TIFFs are tiled by default, which is generally preferred for performance reasons. To enhance the interoperability with clients that do not support tiled TIFFs, this can be changed through the parameter
wcs.outputFormat.geotiff.enableTilingavailable in the the deployment descriptor
If your model encoder implements
ILcdWCSModelEncoder, the WCS framework will, for backwards compatibility,
not perform any of the aforementioned processing such as clipping, transforming and converting.
Instead, it will pass the input model directly to
The implementation is then entirely responsible for clipping, transforming and converting.
|Modifier and Type||Method and Description|
Returns a model encoder that can write the given model to an output stream provided by the given factory, in the given format.
ILcdModelEncoder createModelEncoder(ILcdModel aModel, ILcdOutputStreamFactory aOutputStreamFactory, java.lang.String aOutputFormat, TLcdWCSRequestContext aRequestContext)
aOutputFormat- A string describing the requested output format, e.g. "GeoTIFF".
aRequestContext- Context information regarding the WCS request being handled.