public final class JP2KFormat extends AbstractGridFormat implements Format
Format
for the JP2K format.Modifier and Type | Field and Description |
---|---|
static DefaultParameterDescriptor<Boolean> |
USE_MULTITHREADING
This
GeneralParameterValue can be provided to the GridCoverageReader s through
the GridCoverageReader.read(GeneralParameterValue[]) method in order to specify to
use multithreading when leveraging on a JAI ImageRead operation. |
BACKGROUND_COLOR, BANDS, DECIMATION_POLICY, ELEVATION, FOOTPRINT_BEHAVIOR, GEOTOOLS_WRITE_PARAMS, INPUT_TRANSPARENT_COLOR, INTERPOLATION, mInfo, OVERVIEW_POLICY, PROGRESS_LISTENER, READ_GRIDGEOMETRY2D, readParameters, SUGGESTED_TILE_SIZE, TILE_SIZE_SEPARATOR, TIME, USE_JAI_IMAGEREAD, writeParameters
Constructor and Description |
---|
JP2KFormat()
Creates an instance and sets the metadata.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Object input,
Hints hints)
Tells me if this
Format can read the provided input . |
GeoToolsWriteParams |
getDefaultImageIOWriteParameters()
Returns an instance of
ImageWriteParam that can be used to control a subsequent
GridCoverageWriter.write(org.opengis.coverage.grid.GridCoverage,
org.opengis.parameter.GeneralParameterValue[]) ;
Be careful with using the ImageWriteParam since their usage is still experimental. |
AbstractGridCoverage2DReader |
getReader(Object source)
Gets a
GridCoverageReader for this format able to create coverages out of the
source object. |
AbstractGridCoverage2DReader |
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.
|
protected void |
setInfo()
Sets the metadata information.
|
accepts, 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 DefaultParameterDescriptor<Boolean> USE_MULTITHREADING
GeneralParameterValue
can be provided to the GridCoverageReader
s through
the GridCoverageReader.read(GeneralParameterValue[])
method in order to specify to
use multithreading when leveraging on a JAI ImageRead operation. This will be achieved with
the use of the ImageReadMT operation of the ImageIO-Ext.protected void setInfo()
public AbstractGridCoverage2DReader 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.org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object, Hints)
public AbstractGridCoverage2DReader 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 available null
is returned.
getWriter
in class AbstractGridFormat
destination
- The destinatin where to write.GridCoverageWriter
suitable for writing to the provided destination
with this format.Actually, the plugin does not support write capabilities. The method throws an {@code
UnsupportedOperationException}.
public GeoToolsWriteParams getDefaultImageIOWriteParameters()
AbstractGridFormat
ImageWriteParam
that can be used to control a subsequent
GridCoverageWriter.write(org.opengis.coverage.grid.GridCoverage,
org.opengis.parameter.GeneralParameterValue[])
;
Be careful with using the ImageWriteParam
since their usage is still experimental.
getDefaultImageIOWriteParameters
in class AbstractGridFormat
ImageWriteParam
.Actually, the plugin does not support write capabilities. The method throws an {@code
UnsupportedOperationException}.
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.Actually, the plugin does not support write capabilities. The method throws an {@code
UnsupportedOperationException}.
public boolean accepts(Object input, Hints hints)
AbstractGridFormat
Format
can read the provided input
.accepts
in class AbstractGridFormat
hints
- Hints
to control the accepts internal machinery.org.geotools.data.coverage.grid.AbstractGridFormat#accepts(java.lang.Object input)
Copyright © 1996–2019 Geotools. All rights reserved.