org.geotools.gce.grassraster.format
Class GrassCoverageFormat

Object
  extended by AbstractGridFormat
      extended by GrassCoverageFormat
All Implemented Interfaces:
Format

public final class GrassCoverageFormat
extends AbstractGridFormat
implements Format

Provides basic information about the grass raster format IO.

Author:
Andrea Antonello (www.hydrologis.com)

Field Summary
 
Fields inherited from class AbstractGridFormat
BACKGROUND_COLOR, DECIMATION_POLICY, ELEVATION, 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 Summary
GrassCoverageFormat()
          Creates an instance and sets the metadata.
 
Method Summary
 boolean accepts(Object o, Hints hints)
          Tells me if this Format can read the provided input.
 GeoToolsWriteParams getDefaultImageIOWriteParameters()
          Always returns null since for the moment there are no GeoToolsWriteParams availaible for this format.
 GrassCoverageReader getReader(Object o)
          Gets a GridCoverageReader for this format able to create coverages out of the source object.
 GrassCoverageReader getReader(Object o, 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.
 GrassCoverageWriter getWriter(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 AbstractGridFormat
accepts, equals, getDefaultCRS, getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Format
getDescription, getDocURL, getName, getReadParameters, getVendor, getVersion, getWriteParameters
 

Constructor Detail

GrassCoverageFormat

public GrassCoverageFormat()
Creates an instance and sets the metadata.

Method Detail

getReader

public GrassCoverageReader getReader(Object o)
Description copied from class: AbstractGridFormat
Gets a 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.

Specified by:
getReader in class AbstractGridFormat
Parameters:
o - The source object to parse.
Returns:
A reader for this Format or null.

getWriter

public GrassCoverageWriter getWriter(Object destination,
                                     Hints hints)
Description copied from class: AbstractGridFormat
Call the accepts() method before asking for a writer to determine if the current object is supported.

Specified by:
getWriter in class AbstractGridFormat
Parameters:
destination - the destination object to write a WorldImage to
hints - Hints to control the internal machinery.
Returns:
a new WorldImageWriter for the destination

getWriter

public GridCoverageWriter getWriter(Object destination)
Description copied from class: AbstractGridFormat
Retrieves a GridCoverageWriter suitable for writing to the provided destination with this format.

In case no writers are availaible null is returned.

Specified by:
getWriter in class AbstractGridFormat
Parameters:
destination - The destinatin where to write.
Returns:
A GridCoverageWriter suitable for writing to the provided destination with this format.

accepts

public boolean accepts(Object o,
                       Hints hints)
Description copied from class: AbstractGridFormat
Tells me if this Format can read the provided input.

Specified by:
accepts in class AbstractGridFormat
hints - Hints to control the accepts internal machinery.
Returns:
True if this format can read this object, False otherwise.

getReader

public GrassCoverageReader getReader(Object o,
                                     Hints hints)
Description copied from class: AbstractGridFormat
Gets a 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.

Specified by:
getReader in class AbstractGridFormat
Parameters:
o - The source object to parse. *
hints - The Hints to use when trying to instantiate this reader.
Returns:
A reader for this Format or null.

getDefaultImageIOWriteParameters

public GeoToolsWriteParams getDefaultImageIOWriteParameters()
Always returns null since for the moment there are no GeoToolsWriteParams availaible for this format.

Specified by:
getDefaultImageIOWriteParameters in class AbstractGridFormat
Returns:
always null.


Copyright © 1996-2014 Geotools. All Rights Reserved.