A Raster Format can read and write Rasters
Modifiers | Name | Description |
---|---|---|
protected java.lang.Object |
stream |
The stream which is usually a File |
Type | Name and description |
---|---|
private AbstractGridFormat |
gridFormat The GeoTools AbstractGridFormat |
Constructor and description |
---|
Format
(AbstractGridFormat gridFormat, java.lang.Object stream) Create a new Format wrapping an AbstractGridFormat |
Format
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static Format |
getFormat(java.lang.Object input) Get the Format that can read the given input stream
|
|
Map |
getMetadata(java.lang.String name) Get metadata
|
|
java.lang.String |
getName() Get the format name
|
|
List |
getNames() Get the list of the raster names
|
|
boolean |
has(java.lang.String name) Whether the Format has a Raster by the given name
|
|
Raster |
read(Map options) Read a Raster from the stream (usually a File)
|
|
Raster |
read(Map options, java.lang.String name) Read a Raster from the stream (usually a File)
|
|
Raster |
read(Map options, Projection proj) Read a Raster from the stream (usually a File)
|
|
Raster |
read(Map options, java.lang.String name, Projection proj) Read a Raster from the stream (usually a File)
|
|
Raster |
read(Map options, Hints hints) Read a Raster from the stream (usually a File)
|
|
Raster |
read(Map options, java.lang.String name, Hints hints) Read a Raster from the stream (usually a File)
|
|
java.lang.String |
toString() Get a String representation of this Format
|
|
void |
write(Map options, Raster raster) Write the Raster to the destination object (usually a File)
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The GeoTools AbstractGridFormat
Create a new Format wrapping an AbstractGridFormat
gridFormat
- The GeoTools AbstractGridFormatstream
- The input or output streamGet the Format that can read the given input stream
input
- The input stream (which is usually a File, but can be a URL, InputStream, or connection string)Get metadata
name
- The optional Raster nameGet the format name
Get the list of the raster names
Whether the Format has a Raster by the given name
name
- The Raster nameRead a Raster from the stream (usually a File)
options
- Optional named parameters that are turned into an array
of GeoTools GeneralParameterValuesRead a Raster from the stream (usually a File)
options
- Optional named parameters that are turned into an array
of GeoTools GeneralParameterValuesname
- The name of the Raster to readRead a Raster from the stream (usually a File)
options
- Optional named parameters that are turned into an array
of GeoTools GeneralParameterValuesproj
- The ProjectionRead a Raster from the stream (usually a File)
options
- Optional named parameters that are turned into an array
of GeoTools GeneralParameterValuesname
- The name of the Rasterproj
- The ProjectionRead a Raster from the stream (usually a File)
options
- Optional named parameters that are turned into an array
of GeoTools GeneralParameterValueshints
- GeoTools HintsRead a Raster from the stream (usually a File)
options
- Optional named parameters that are turned into an array
of GeoTools GeneralParameterValuesname
- The name of the Rasterhints
- GeoTools HintsGet a String representation of this Format
Groovy Documentation