|
||||||||||
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.gce.image.WorldImageFormat
public final class WorldImageFormat
A Format to allow discovery of Readers/Writers for raster images that support world files containing information about the image. Supports gif+gfw, jpg/jpeg+jgw, tif/tiff+tfw and png+pgw. wld may be used in place of the format specific extension (jpg+wld, etc) Designed to be used with GridCoverageExchange.
Field Summary | |
---|---|
static org.opengis.parameter.ParameterDescriptor<java.lang.String> |
FORMAT
Format writing parameter. |
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 | |
---|---|
WorldImageFormat()
WorldImageFormat |
Method Summary | |
---|---|
boolean |
accepts(java.lang.Object input)
Takes the input and determines if it is a class that we can understand and then futher checks the format of the class to make sure we can read/write to it. |
GeoToolsWriteParams |
getDefaultImageIOWriteParameters()
Always returns null since for the moment there are no GeoToolsWriteParams availaible for this format. |
WorldImageReader |
getReader(java.lang.Object source)
Retrieves a WorldImageReader in case the providede
source can be accepted as a valid source for a world
image. |
WorldImageReader |
getReader(java.lang.Object source,
Hints hints)
Retrieves a WorldImageReader in case the providede
source can be accepted as a valid source for a world
image. |
static java.util.Set<java.lang.String> |
getWorldExtension(java.lang.String fileExtension)
Takes an image file extension (such as .gif, including the '.') and returns it's corresponding world file extension (such as .gfw). |
org.opengis.coverage.grid.GridCoverageWriter |
getWriter(java.lang.Object destination)
Call the accepts() method before asking for a writer to determine if the current object is supported. |
org.opengis.coverage.grid.GridCoverageWriter |
getWriter(java.lang.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 org.geotools.coverage.grid.io.AbstractGridFormat |
---|
equals, 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 |
---|
public static final org.opengis.parameter.ParameterDescriptor<java.lang.String> FORMAT
Constructor Detail |
---|
public WorldImageFormat()
Method Detail |
---|
public WorldImageReader getReader(java.lang.Object source)
WorldImageReader
in case the providede
source
can be accepted as a valid source for a world
image. The method returns null otherwise.
getReader
in class AbstractGridFormat
source
- The source object to read a WorldImage from
public org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object destination)
getWriter
in class AbstractGridFormat
destination
- the destination object to write a WorldImage to
public org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object destination, Hints hints)
destination
- the destination object to write a WorldImage to
public boolean accepts(java.lang.Object input)
accepts
in class AbstractGridFormat
input
- The object to check for acceptance.
public static java.util.Set<java.lang.String> getWorldExtension(java.lang.String fileExtension)
fileExtension
- an image file extension, including the '.'
Set
of world file extensions, including
the '.'public WorldImageReader getReader(java.lang.Object source, Hints hints)
WorldImageReader
in case the providede
source
can be accepted as a valid source for a world
image. The method returns null otherwise.
getReader
in class AbstractGridFormat
source
- The source object to read a WorldImage fromhints
- Hints
to control the provided WorldImageReader
.
public GeoToolsWriteParams getDefaultImageIOWriteParameters()
GeoToolsWriteParams
availaible for this format.
getDefaultImageIOWriteParameters
in class AbstractGridFormat
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |