Package org.geotools.coverageio.gdal
Class BaseGDALGridFormat
Object
AbstractGridFormat
BaseGDALGridFormat
- All Implemented Interfaces:
Format
- Direct Known Subclasses:
AIGFormat,DTEDFormat,ECWFormat,EnviHdrFormat,ErdasImgFormat,EsriHdrFormat,IDRISIFormat,JP2ECWFormat,JP2KFormat,JP2MrSIDFormat,MrSIDFormat,NITFFormat,RPFTOCFormat,SRPFormat,VRTFormat,VSIFormat
A Base abstract class implementing
Format, to be extended by Formats leveraging on GDAL.- Author:
- Daniele Romagnoli, GeoSolutions, Simone Giannecchini, GeoSolutions
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final GeneralParameterDescriptor[]Base Parameter DescriptorFields inherited from class AbstractGridFormat
BACKGROUND_COLOR, BANDS, DECIMATION_POLICY, ELEVATION, FOOTPRINT_BEHAVIOR, GEOTOOLS_WRITE_PARAMS, INPUT_TRANSPARENT_COLOR, INTERPOLATION, mInfo, OVERVIEW_POLICY, PROGRESS_LISTENER, READ_GRIDGEOMETRY2D, readParameters, RESCALE_PIXELS, SUGGESTED_TILE_SIZE, TILE_SIZE_SEPARATOR, TIME, USE_IMAGEN_IMAGEREAD, writeParameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for theBaseGDALGridFormat. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells me if thisFormatcan read the providedinput.Returns an instance ofImageWriteParamthat can be used to control a subsequentGridCoverageWriter.write(org.geotools.api.coverage.grid.GridCoverage, org.geotools.api.parameter.GeneralParameterValue[]);protected static ParameterGroupgetDefaultParameterGroup(Map<String, String> mInfo) Return a ParameterGroup with default General Parameter Descriptors.Gets aGridCoverageReaderfor this format able to create coverages out of thesourceobject.Retrieves aGridCoverageWritersuitable for writing to the provideddestinationwith this format.Call the accepts() method before asking for a writer to determine if the current object is supported.protected abstract voidsetInfo()Each plugin needs to implement this method defining format specific propertiesprotected voidsetInfo(BaseGDALGridFormat.InfoWrapper infoWrapper) Methods inherited from class AbstractGridFormat
accepts, equals, getDefaultCRS, getDescription, getDocURL, getName, getReader, getReadParameters, getVendor, getVersion, getWriteParametersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Format
getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
-
Field Details
-
PARAM_DESCRIPTOR
Base Parameter Descriptor
-
-
Constructor Details
-
BaseGDALGridFormat
Constructor for theBaseGDALGridFormat. It is invoked by the underlying implementations.- Parameters:
spi- the format specificImageReaderSpiinstance
-
-
Method Details
-
setInfo
protected abstract void setInfo()Each plugin needs to implement this method defining format specific properties -
getWriter
Description copied from class:AbstractGridFormatRetrieves aGridCoverageWritersuitable for writing to the provideddestinationwith this format.In case no writers are available
nullis returned.- Specified by:
getWriterin classAbstractGridFormat- Parameters:
destination- The destinatin where to write.- Returns:
- A
GridCoverageWritersuitable for writing to the provideddestinationwith this format. - See Also:
-
Actually, the plugin does not support write capabilities. The method throws an
UnsupportedOperationException.
-
getDefaultImageIOWriteParameters
Description copied from class:AbstractGridFormatReturns an instance ofImageWriteParamthat can be used to control a subsequentGridCoverageWriter.write(org.geotools.api.coverage.grid.GridCoverage, org.geotools.api.parameter.GeneralParameterValue[]);Be careful with using the
ImageWriteParamsince their usage is still experimental.- Specified by:
getDefaultImageIOWriteParametersin classAbstractGridFormat- Returns:
- an instance of
ImageWriteParam. - See Also:
-
Actually, the plugin does not support write capabilities. The method throws an
UnsupportedOperationException.
-
getWriter
Description copied from class:AbstractGridFormatCall the accepts() method before asking for a writer to determine if the current object is supported.- Specified by:
getWriterin classAbstractGridFormat- Parameters:
destination- the destination object to write a WorldImage tohints-Hintsto control the internal machinery.- Returns:
- a new WorldImageWriter for the destination
- See Also:
-
Actually, the plugin does not support write capabilities. The method throws an
UnsupportedOperationException.
-
accepts
Description copied from class:AbstractGridFormatTells me if thisFormatcan read the providedinput.- Specified by:
acceptsin classAbstractGridFormat- Parameters:
input- The input object to test for suitability.hints-Hintsto control the accepts internal machinery.- Returns:
- True if this format can read this object, False otherwise.
- See Also:
-
org.geotools.data.coverage.grid.AbstractGridFormat#accepts(java.lang.Object input)
-
getDefaultParameterGroup
Return a ParameterGroup with default General Parameter Descriptors.- Parameters:
mInfo- Set of properties info- Returns:
- a
ParameterGroupwith DefaultGeneralParameterDescriptors.
-
getReader
Description copied from class:AbstractGridFormatGets aGridCoverageReaderfor this format able to create coverages out of thesourceobject.In case this
Formatcannot reader the providedsourceobjectnullis returned.- Specified by:
getReaderin classAbstractGridFormat- Parameters:
source- The source object to parse.- Returns:
- A reader for this
Formator null. - See Also:
-
org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object source)
-
setInfo
-