public final class ImageMosaicFormat extends AbstractGridFormat implements Format
AbstractGridFormat
subclass for controlling ImageMosaicReader
creation. As the name says, it handles mosaic of georeferenced
images, which means
Modifier and Type | Field and Description |
---|---|
static ParameterDescriptor<Boolean> |
ACCURATE_RESOLUTION
Control the requested resolution calculation.
|
static ParameterDescriptor<Boolean> |
ALLOW_MULTITHREADING
Control the threading behavior for this plugin.
|
static ParameterDescriptor<Double> |
ARTIFACTS_FILTER_PTILE_THRESHOLD
Control the artifact filter ptile thresholding
|
static ParameterDescriptor<double[]> |
BACKGROUND_VALUES
Control the background values for the output coverage
|
static ParameterDescriptor<Integer> |
DEFAULT_ARTIFACTS_FILTER_THRESHOLD
Control the default artifact filter luminance thresholding on the input coverages
|
static ParameterDescriptor<ExcessGranulePolicy> |
EXCESS_GRANULE_REMOVAL
Controls the removal of excess granules
This parameter controls whether the mosaic will attempt to remove excess granules, that is, granules not contributing
pixels to the output, before performing the mosaicking.
|
static ParameterDescriptor<Boolean> |
FADING
Control the type of the final mosaic.
|
static ParameterDescriptor<Filter> |
FILTER
Filter tiles based on attributes from the input coverage
|
static ParameterDescriptor<Interpolation> |
INTERPOLATION
Control the interpolation to be used in mosaicking
|
static ParameterDescriptor<Integer> |
MAX_ALLOWED_TILES
Control the thresholding on the input coverage
|
static ParameterDescriptor<String> |
MERGE_BEHAVIOR
Merging behavior for the various granules of the mosaic we are going to produce.
|
static ParameterDescriptor<Color> |
OUTPUT_TRANSPARENT_COLOR
Control the transparency of the output coverage.
|
static ParameterDescriptor<String> |
SORT_BY
Optional Sorting for the granules of the mosaic.
|
BACKGROUND_COLOR, BANDS, DECIMATION_POLICY, ELEVATION, FOOTPRINT_BEHAVIOR, GEOTOOLS_WRITE_PARAMS, INPUT_TRANSPARENT_COLOR, mInfo, OVERVIEW_POLICY, PROGRESS_LISTENER, READ_GRIDGEOMETRY2D, readParameters, SUGGESTED_TILE_SIZE, TILE_SIZE_SEPARATOR, TIME, USE_JAI_IMAGEREAD, writeParameters
Constructor and Description |
---|
ImageMosaicFormat()
Creates an instance and sets the metadata.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Object source)
Tells me if this
Format can read the provided input . |
boolean |
accepts(Object source,
Hints hints)
Tells me if this
Format can read the provided input . |
GeoToolsWriteParams |
getDefaultImageIOWriteParameters()
Throw an exception since this plugin is readonly.
|
ImageMosaicReader |
getReader(Object source)
Gets a
GridCoverageReader for this format able to create
coverages out of the source object. |
ImageMosaicReader |
getReader(Object source,
Hints hints)
Gets a
GridCoverageReader for this format able to create
coverages out of the source object using the provided
hints . |
GridCoverageWriter |
getWriter(Object destination)
Retrieves a
GridCoverageWriter suitable for writing to the
provided destination with this format. |
GridCoverageWriter |
getWriter(Object destination,
Hints hints)
Call the accepts() method before asking for a writer to determine if the
current object is supported.
|
equals, getDefaultCRS, getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
public static final ParameterDescriptor<Filter> FILTER
public static final ParameterDescriptor<Boolean> FADING
public static final ParameterDescriptor<Color> OUTPUT_TRANSPARENT_COLOR
public static final ParameterDescriptor<Integer> MAX_ALLOWED_TILES
public static final ParameterDescriptor<Integer> DEFAULT_ARTIFACTS_FILTER_THRESHOLD
public static final ParameterDescriptor<Double> ARTIFACTS_FILTER_PTILE_THRESHOLD
public static final ParameterDescriptor<Boolean> ALLOW_MULTITHREADING
public static final ParameterDescriptor<double[]> BACKGROUND_VALUES
public static final ParameterDescriptor<Interpolation> INTERPOLATION
public static final ParameterDescriptor<Boolean> ACCURATE_RESOLUTION
public static final ParameterDescriptor<String> SORT_BY
It does work only with DBMS as indexes
public static final ParameterDescriptor<String> MERGE_BEHAVIOR
This parameter controls whether we want to merge in a single mosaic or stack all the bands into the final mosaic.
public static final ParameterDescriptor<ExcessGranulePolicy> EXCESS_GRANULE_REMOVAL
This parameter controls whether the mosaic will attempt to remove excess granules, that is, granules not contributing pixels to the output, before performing the mosaicking. This is useful only if granules are overlapping, do not enable otherwise.
public ImageMosaicFormat()
public ImageMosaicReader getReader(Object source)
AbstractGridFormat
GridCoverageReader
for this format able to create
coverages out of the source
object.
In case this Format
cannot reader the provided
source
object null
is returned.
getReader
in class AbstractGridFormat
source
- The source object to parse.Format
or null.org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object)
public GridCoverageWriter getWriter(Object destination)
AbstractGridFormat
GridCoverageWriter
suitable for writing to the
provided destination
with this format.
In case no writers are availaible null
is returned.
getWriter
in class AbstractGridFormat
destination
- The destinatin where to write.GridCoverageWriter
suitable for writing to the provided
destination
with this format.public boolean accepts(Object source, Hints hints)
AbstractGridFormat
Format
can read the provided input
.accepts
in class AbstractGridFormat
hints
- Hints
to control the accepts internal machinery.public boolean accepts(Object source)
AbstractGridFormat
Format
can read the provided input
.accepts
in class AbstractGridFormat
org.geotools.data.coverage.grid.AbstractGridFormat#accepts(Object input)
public ImageMosaicReader getReader(Object source, Hints hints)
AbstractGridFormat
GridCoverageReader
for this format able to create
coverages out of the source
object using the provided
hints
.
In case this Format
cannot reader the provided
source
object null
is returned.
getReader
in class AbstractGridFormat
source
- The source object to parse. *hints
- The Hints
to use when trying to instantiate this
reader.Format
or null.AbstractGridFormat.getReader(Object, Hints)
public GeoToolsWriteParams getDefaultImageIOWriteParameters()
getDefaultImageIOWriteParameters
in class AbstractGridFormat
public GridCoverageWriter getWriter(Object destination, Hints hints)
AbstractGridFormat
getWriter
in class AbstractGridFormat
destination
- the destination object to write a WorldImage tohints
- Hints
to control the internal machinery.Copyright © 1996–2018 Geotools. All rights reserved.