public final class ArcGridWriter extends AbstractGridCoverageWriter implements GridCoverageWriter
ArcGridWriter
supports writing of an ArcGrid GridCoverage to a Desination object
XXX We cannot write a rotated grid coverage, we have to enforce that!
destination, hints, outStream
Constructor and Description |
---|
ArcGridWriter(Object destination)
Takes either a URL or a String that points to an ArcGridCoverage file and converts it to a
URL that can then be written to.
|
ArcGridWriter(Object destination,
Hints hints)
Takes either a URL or a String that points to an ArcGridCoverage file and converts it to a
URL that can then be written to.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases resources held by this
AbstractGridCoverageWriter . |
Format |
getFormat()
Creates a Format object describing the Arc Grid Format
|
void |
write(GridCoverage coverage,
GeneralParameterValue[] parameters)
Note: The geotools GridCoverage class does not implement the geoAPI GridCoverage Interface so
this method shows an error.
|
finalize, getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDestination, getMetadataNames, setCurrentSubname, setMetadataValue
public ArcGridWriter(Object destination) throws DataSourceException
destination
- the URL or String pointing to the file to load the ArcGridDataSourceException
public ArcGridWriter(Object destination, Hints hints) throws DataSourceException
destination
- the URL or String pointing to the file to load the ArcGridDataSourceException
public Format getFormat()
getFormat
in interface GridCoverageWriter
GridCoverageWriter.getFormat()
public void write(GridCoverage coverage, GeneralParameterValue[] parameters) throws IllegalArgumentException, IOException
write
in interface GridCoverageWriter
coverage
- The grid coverage to write.parameters
- An optional set of parameters. Should be any or all of the parameters
returned by Format.getWriteParameters()
.InvalidParameterNameException
- if a parameter in parameters
doesn't have a
recognized name.InvalidParameterValueException
- if a parameter in parameters
doesn't have a
valid value.ParameterNotFoundException
- if a parameter was required for the operation but was not
provided in the parameters
list.IOException
- if the export failed for some other input/output reason, including IIOException
if an error was thrown by the underlying image library.IllegalArgumentException
GridCoverageWriter.write(org.opengis.coverage.grid.GridCoverage,
org.opengis.parameter.GeneralParameterValue[])
public void dispose()
AbstractGridCoverageWriter
AbstractGridCoverageWriter
.dispose
in interface GridCoverageWriter
dispose
in class AbstractGridCoverageWriter
GridCoverageWriter.dispose()
Copyright © 1996–2019 Geotools. All rights reserved.