org.geotools.gce.geotiff
Class GeoTiffFormat

java.lang.Object
  extended byorg.geotools.data.coverage.grid.AbstractGridFormat
      extended byorg.geotools.gce.geotiff.GeoTiffFormat
All Implemented Interfaces:
org.opengis.coverage.grid.Format

public class GeoTiffFormat
extends AbstractGridFormat
implements org.opengis.coverage.grid.Format

Provides basic information about the GeoTIFF format IO. This is currently an extension of the Geotools AbstractGridFormat because the stream and file GCEs will pick it up if it extends AbstractGridFormat.

Author:
Bryce Nordgren, USDA Forest Service

Field Summary
static DefaultParameterDescriptor RESCALE
          Indicates whether we need to rescale the input
 
Fields inherited from class org.geotools.data.coverage.grid.AbstractGridFormat
CRSAuthorityfactoriesMap, mInfo, readParameters, writeParameters
 
Constructor Summary
GeoTiffFormat()
          Creates a new instance of GeoTiffFormat
 
Method Summary
 boolean accepts(java.lang.Object o)
          Currently, we only accept files, and we open the file to verify that it has a GeoKeyDirectory tag.
 org.opengis.coverage.grid.GridCoverageReader getReader(java.lang.Object source)
          If source is a file, this will return a reader object.
 org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object source)
          Always returns null.
 
Methods inherited from class org.geotools.data.coverage.grid.AbstractGridFormat
addAuthorityFactory, equals, getAuthorityfactory, getDefaultCRS, getDescription, getDocURL, getName, 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

RESCALE

public static final DefaultParameterDescriptor RESCALE
Indicates whether we need to rescale the input

Constructor Detail

GeoTiffFormat

public GeoTiffFormat()
Creates a new instance of GeoTiffFormat

Method Detail

accepts

public boolean accepts(java.lang.Object o)
Currently, we only accept files, and we open the file to verify that it has a GeoKeyDirectory tag. If anything more subtle is wrong with the file, we deal with that when we try and read it.

Specified by:
accepts in class AbstractGridFormat
Parameters:
o - the source object to test for compatibility with this format. Must be a CatalogEntry.
Returns:
true if "o" is a CatalogEntry with a GeoTiff file as a resource.

getReader

public org.opengis.coverage.grid.GridCoverageReader getReader(java.lang.Object source)
If source is a file, this will return a reader object. This file does not use hints in the construction of the geotiff reader.

Specified by:
getReader in class AbstractGridFormat
Parameters:
source - must be a GeoTiff File
Returns:
a GeoTiffReader object initialized to the specified File.

getWriter

public org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object source)
Always returns null.

Specified by:
getWriter in class AbstractGridFormat
Parameters:
source - ignored
Returns:
null, always.


Copyright © GeoTools. All Rights Reserved.