|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.coverage.grid.io.AbstractGridFormat
org.geotools.coverageio.gdal.BaseGDALGridFormat
public abstract class BaseGDALGridFormat
A Base abstract class implementing Format
, to be extended by Formats
leveraging on GDAL.
Field Summary | |
---|---|
static DefaultParameterDescriptor<java.lang.String> |
SUGGESTED_TILE_SIZE
This GeneralParameterValue can be provided to the
GridCoverageReader s through the
GridCoverageReader.read(GeneralParameterValue[]) method in order
to specify the suggested size of tiles to avoid long time reading
occurring with JAI ImageRead on striped images. |
static java.lang.String |
TILE_SIZE_SEPARATOR
|
static DefaultParameterDescriptor<java.lang.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. |
Fields inherited from class org.geotools.coverage.grid.io.AbstractGridFormat |
---|
GEOTOOLS_WRITE_PARAMS, mInfo, OVERVIEW_POLICY, READ_GRIDGEOMETRY2D, readParameters, USE_JAI_IMAGEREAD, writeParameters |
Constructor Summary | |
---|---|
protected |
BaseGDALGridFormat(javax.imageio.spi.ImageReaderSpi spi)
Constructor for the BaseGDALGridFormat . |
Method Summary | |
---|---|
boolean |
accepts(java.lang.Object input)
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[]) ; |
protected static ParameterGroup |
getDefaultParameterGroup(java.util.Map<java.lang.String,java.lang.String> mInfo)
Return a ParameterGroup with default General Parameter Descriptors. |
AbstractGridCoverage2DReader |
getReader(java.lang.Object source)
Gets a GridCoverageReader for this format able to create
coverages out of the source object. |
org.opengis.coverage.grid.GridCoverageWriter |
getWriter(java.lang.Object destination)
Retrieves a GridCoverageWriter suitable for writing to the
provided destination with this format. |
org.opengis.coverage.grid.GridCoverageWriter |
getWriter(java.lang.Object destination,
Hints hints)
|
protected abstract void |
setInfo()
Each plugin needs to implement this method defining format specific properties |
Methods inherited from class org.geotools.coverage.grid.io.AbstractGridFormat |
---|
equals, getDefaultCRS, getDescription, getDocURL, getName, getReader, getReadParameters, getVendor, getVersion, getWriteParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.coverage.grid.Format |
---|
getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters |
Field Detail |
---|
public static final DefaultParameterDescriptor<java.lang.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.
public static final DefaultParameterDescriptor<java.lang.String> SUGGESTED_TILE_SIZE
GeneralParameterValue
can be provided to the
GridCoverageReader
s through the
GridCoverageReader.read(GeneralParameterValue[])
method in order
to specify the suggested size of tiles to avoid long time reading
occurring with JAI ImageRead on striped images. (Images with tiles Nx1)
Value should be a String in the form of "W,H" (without quotes) where W is
a number representing the suggested tileWidth and H is a number
representing the suggested tileHeight.
public static final java.lang.String TILE_SIZE_SEPARATOR
Constructor Detail |
---|
protected BaseGDALGridFormat(javax.imageio.spi.ImageReaderSpi spi)
BaseGDALGridFormat
. It is invoked by the
underlying implementations.
spi
- the format specific ImageReaderSpi
instanceMethod Detail |
---|
protected abstract void setInfo()
public AbstractGridCoverage2DReader getReader(java.lang.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
source)
public org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.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.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 org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object destination, Hints hints)
Actually, the plugin does not support write capabilities. The method
throws an {@code UnsupportedOperationException}.
public boolean accepts(java.lang.Object input)
AbstractGridFormat
Format
can read the provided input
.
accepts
in class AbstractGridFormat
input
- The input object to test for suitablilty.
org.geotools.data.coverage.grid.AbstractGridFormat#accepts(java.lang.Object input)
protected static ParameterGroup getDefaultParameterGroup(java.util.Map<java.lang.String,java.lang.String> mInfo)
mInfo
- Set of properties info
ParameterGroup
with Default GeneralParameterDescriptors
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |