|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.gc.GridCoverageExchange
Support for creation of grid coverages from persistent formats as well as exporting a grid coverage to a persistent formats.
GC_GridCoverageExchange
Constructor Summary | |
GridCoverageExchange()
Default constructor. |
Method Summary | |
GridCoverage |
createFromName(java.lang.String name,
javax.imageio.ImageReadParam param)
Create a new GridCoverage from a grid coverage file.
|
void |
exportTo(GridCoverage gridCoverage,
java.lang.String fileFormat,
java.io.File fileName)
Export a grid coverage to a persistent file format. |
java.util.Locale |
getLocale()
Returns the currently set Locale ,
or null if none has been set. |
void |
setLocale(java.util.Locale locale)
Sets the current Locale of this GridCoverageExchange
to the given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GridCoverageExchange()
Method Detail |
public GridCoverage createFromName(java.lang.String name, javax.imageio.ImageReadParam param) throws java.io.IOException
GridCoverage
from a grid coverage file.
This method is meant to allow implementations to create a
GridCoverage
from any file format.
name
- File name (including path) from which to create a grid coverage.
This file name can be any valid file name within the underlying operating
system of the server or a valid string, such as a URL which specifics
a grid coverage.param
- Parameters used to control the reading process, or null
if none.
java.io.IOException
- if an error occurs during reading.
javax.imageio.IIOException
- if a grid coverage can't be create from the specified name.GC_GridCoverageExchange.createFromName(java.lang.String)
public void exportTo(GridCoverage gridCoverage, java.lang.String fileFormat, java.io.File fileName) throws java.io.IOException
gridCoverage
- Source grid coverage.fileFormat
- String which indicates exported file format.fileName
- File name to store grid coverage. This file name can be any
valid file name within the underlying operating system of the server.
java.io.IOException
- if an input/output operation (including RMI) failed.
javax.imageio.IIOException
- if the file format is not compatiable with the grid
coverage.GC_GridCoverageExchange.exportTo(org.opengis.gc.GC_GridCoverage, java.lang.String, java.lang.String, org.opengis.gc.GC_Parameter[])
public void setLocale(java.util.Locale locale)
Locale
of this GridCoverageExchange
to the given value. A value of null
removes any previous
setting, and indicates that the reader should localize as it sees fit.
public java.util.Locale getLocale()
Locale
,
or null
if none has been set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |