Package org.geotools.gce.pgraster
Class PGRasterFormat
- Object
- 
- AbstractGridFormat
- 
- PGRasterFormat
 
 
- 
- All Implemented Interfaces:
- Format
 
 public class PGRasterFormat extends AbstractGridFormat Coverage format for rasters stored in a PostGIS database as described by the PostGIS Raster Reference.
- 
- 
Field Summary- 
Fields inherited from class AbstractGridFormatBACKGROUND_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_JAI_IMAGEREAD, writeParameters
 
- 
 - 
Constructor SummaryConstructors Constructor Description PGRasterFormat()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(Object source, Hints hints)Tells me if thisFormatcan read the providedinput.GeoToolsWriteParamsgetDefaultImageIOWriteParameters()Returns an instance ofImageWriteParamthat can be used to control a subsequentGridCoverageWriter.write(org.geotools.api.coverage.grid.GridCoverage, org.geotools.api.parameter.GeneralParameterValue[]);PGRasterReadergetReader(Object source)Gets aGridCoverageReaderfor this format able to create coverages out of thesourceobject.PGRasterReadergetReader(Object source, Hints hints)Gets aGridCoverageReaderfor this format able to create coverages out of thesourceobject using the providedhints.GridCoverageWritergetWriter(Object destination)Retrieves aGridCoverageWritersuitable for writing to the provideddestinationwith this format.GridCoverageWritergetWriter(Object destination, Hints hints)Call the accepts() method before asking for a writer to determine if the current object is supported.- 
Methods inherited from class AbstractGridFormataccepts, equals, getDefaultCRS, getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
 
- 
 
- 
- 
- 
Method Detail- 
getReaderpublic PGRasterReader getReader(Object source) 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 class- AbstractGridFormat
- Parameters:
- source- The source object to parse.
- Returns:
- A reader for this Formator null.
 
 - 
getReaderpublic PGRasterReader getReader(Object source, Hints hints) Description copied from class:AbstractGridFormatGets aGridCoverageReaderfor this format able to create coverages out of thesourceobject using the providedhints.In case this Formatcannot reader the providedsourceobjectnullis returned.- Specified by:
- getReaderin class- AbstractGridFormat
- Parameters:
- source- The source object to parse. *
- hints- The- Hintsto use when trying to instantiate this reader.
- Returns:
- A reader for this Formator null.
 
 - 
acceptspublic boolean accepts(Object source, Hints hints) Description copied from class:AbstractGridFormatTells me if thisFormatcan read the providedinput.- Specified by:
- acceptsin class- AbstractGridFormat
- Parameters:
- source- 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.
 
 - 
getDefaultImageIOWriteParameterspublic GeoToolsWriteParams 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 class- AbstractGridFormat
- Returns:
- an instance of ImageWriteParam.
 
 - 
getWriterpublic GridCoverageWriter getWriter(Object destination) Description copied from class:AbstractGridFormatRetrieves aGridCoverageWritersuitable for writing to the provideddestinationwith this format.In case no writers are available nullis returned.- Specified by:
- getWriterin class- AbstractGridFormat
- Parameters:
- destination- The destinatin where to write.
- Returns:
- A GridCoverageWritersuitable for writing to the provideddestinationwith this format.
 
 - 
getWriterpublic GridCoverageWriter getWriter(Object destination, Hints hints) Description copied from class:AbstractGridFormatCall the accepts() method before asking for a writer to determine if the current object is supported.- Specified by:
- getWriterin class- AbstractGridFormat
- Parameters:
- destination- the destination object to write a WorldImage to
- hints-- Hintsto control the internal machinery.
- Returns:
- a new WorldImageWriter for the destination
 
 
- 
 
-