|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectGridCoverageStoreParam
GridCoverageWriteParam
public class GridCoverageWriteParam
Describes how a stream is to be encoded. Instances of this class are used to supply
information to instances of GridCoverageWriter.
Note: This class is conceptually equivalent to theImageWriteParamclass provided in the standard Java library. The main difference is thatGridCoverageWriteParamworks with geodetic coordinates whileImageWriteParamworks with pixel coordinates.
ImageWriteParam,
Serialized Form
| coverage/geotk-coverageio (download) | View source code for this class |
| Constructor Summary | |
|---|---|
GridCoverageWriteParam()
Creates a new GridCoverageWriteParam instance. |
|
GridCoverageWriteParam(GridCoverageStoreParam param)
Creates a new GridCoverageWriteParam instance initialized to the same
values than the given parameters. |
|
| Method Summary | |
|---|---|
void |
clear()
Resets all parameters to their null value. |
double[] |
getBackgroundValues()
Returns the sample values to use for filling empty areas during reprojection, or null for the default. |
Float |
getCompressionQuality()
Returns the compression quality as a value between 0 and 1, or null if not defined. |
String |
getFormatName()
Returns the image format to use for fetching an ImageWriter, or null
if unspecified. |
InterpolationMethod |
getInterpolation()
Returns the interpolation method. |
void |
setBackgroundValues(double... values)
Sets the sample values to use for filling empty areas during reprojection, or null for the default. |
void |
setCompressionQuality(Float quality)
Sets the compression quality as a value between 0 and 1, or null for the default. |
void |
setFormatName(String name)
Sets the image format to use for fetching an ImageWriter, or null if
unspecified. |
void |
setInterpolation(InterpolationMethod method)
Sets the interpolation method. |
| Methods inherited from class GridCoverageStoreParam |
|---|
getCoordinateReferenceSystem, getEnvelope, getResolution, getSourceBands, setCoordinateReferenceSystem, setEnvelope, setEnvelope, setResolution, setSourceBands, toString |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridCoverageWriteParam()
GridCoverageWriteParam instance. All properties are
initialized to null. Callers must invoke setter methods in order
to provide information about the way to encode the stream.
public GridCoverageWriteParam(GridCoverageStoreParam param)
GridCoverageWriteParam instance initialized to the same
values than the given parameters.
param - The parameters to copy, or null if none.| Method Detail |
|---|
public void clear()
null value.
clear in class GridCoverageStoreParampublic String getFormatName()
ImageWriter, or null
if unspecified. If null, then the format while be inferred automatically from
the output suffix.
ImageWriter, or null if unspecified.public void setFormatName(String name)
ImageWriter, or null if
unspecified. If null, then the format while be inferred automatically from
the output suffix.
name - The format to use for fetching an ImageWriter, or null
if unspecified.public Float getCompressionQuality()
null if not defined.
Value 0 stands for more compression, at the cost of either quality for lossy formats or
speed for lossless formats.
null for the format-dependent default value.ImageWriteParam.getCompressionQuality()
public void setCompressionQuality(Float quality)
throws IllegalArgumentException
null for the default.
Value 0 stands for more compression, at the cost of either quality for lossy formats or
speed for lossless formats.
quality - The compression quality, or null for the format-dependent default value.
IllegalArgumentException - If the given value is not null but not in the [0…1] range.ImageWriteParam.setCompressionQuality(float)public InterpolationMethod getInterpolation()
null).public void setInterpolation(InterpolationMethod method)
null value is considered
as synonymous to nearest-neighbor. We allow that because null can be interpreted
as "no interpolation".
The InterpolationMethod.NEAREST_NEIGHBOUR method shall be supported by all writers.
Other interpolation methods may or may not be supported on a case-by-case basis, but the
BILINEAR and BICUBIC
methods can be considered as typically supported for image writers backed by Java Advanced Imaging.
method - The interpolation method, or null for nearest-neighbor.public double[] getBackgroundValues()
null for the default. If non-null, the array length shall be equals
to the number of bands.
null for the default.public void setBackgroundValues(double... values)
null for the default. If non-null, the array length shall be equals to
the number of bands.
The values provided to this method will be casted to the appropriate type (typically
byte) at writing time.
values - The background values for each bands, or null for the default.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||