org.geotools.gce.arcgrid
Class ArcGridWriter

java.lang.Object
  extended byorg.geotools.gce.arcgrid.ArcGridWriter
All Implemented Interfaces:
org.opengis.coverage.grid.GridCoverageWriter

public class ArcGridWriter
extends java.lang.Object
implements org.opengis.coverage.grid.GridCoverageWriter

ArcGridWriter Supports writing of an ArcGrid GridCoverage to an Desination object, provided the desination object can be converted to a PrintWriter with the IOExchange

Author:
jeichar, simone giannecchini

Constructor Summary
ArcGridWriter(java.lang.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.
 
Method Summary
 void dispose()
           
 java.lang.Object getDestination()
          Returns the destination object passed to it by the GridCoverageExchange
 org.opengis.coverage.grid.Format getFormat()
          Creates a Format object describing the Arc Grid Format
 java.lang.String[] getMetadataNames()
          Implementation of getMetadataNames.
 void setCurrentSubname(java.lang.String name)
           
 void setMetadataValue(java.lang.String name, java.lang.String value)
           
 void write(org.opengis.coverage.grid.GridCoverage coverage, org.opengis.parameter.GeneralParameterValue[] parameters)
          Note: The geotools GridCoverage class does not implement the geoAPI GridCoverage Interface so this method shows an error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcGridWriter

public ArcGridWriter(java.lang.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.

Parameters:
destination - the URL or String pointing to the file to load the ArcGrid
Method Detail

getMetadataNames

public java.lang.String[] getMetadataNames()
Implementation of getMetadataNames. Currently unimplemented because it has not been specified where to retrieve the metadata

Specified by:
getMetadataNames in interface org.opengis.coverage.grid.GridCoverageWriter
Returns:
null
See Also:
GridCoverageWriter.getMetadataNames()

getFormat

public org.opengis.coverage.grid.Format getFormat()
Creates a Format object describing the Arc Grid Format

Specified by:
getFormat in interface org.opengis.coverage.grid.GridCoverageWriter
Returns:
the format of the data source we will write to. (ArcGridFormat in this case)
See Also:
GridCoverageWriter.getFormat()

getDestination

public java.lang.Object getDestination()
Returns the destination object passed to it by the GridCoverageExchange

Specified by:
getDestination in interface org.opengis.coverage.grid.GridCoverageWriter
Returns:
the destination that this writer is configured to write to.
See Also:
GridCoverageWriter.getDestination()

setMetadataValue

public void setMetadataValue(java.lang.String name,
                             java.lang.String value)
                      throws java.io.IOException,
                             org.opengis.coverage.MetadataNameNotFoundException
Specified by:
setMetadataValue in interface org.opengis.coverage.grid.GridCoverageWriter
Throws:
java.io.IOException
org.opengis.coverage.MetadataNameNotFoundException
See Also:
GridCoverageWriter.setMetadataValue(java.lang.String, java.lang.String)

setCurrentSubname

public void setCurrentSubname(java.lang.String name)
                       throws java.io.IOException
Specified by:
setCurrentSubname in interface org.opengis.coverage.grid.GridCoverageWriter
Throws:
java.io.IOException
See Also:
GridCoverageWriter.setCurrentSubname(java.lang.String)

write

public void write(org.opengis.coverage.grid.GridCoverage coverage,
                  org.opengis.parameter.GeneralParameterValue[] parameters)
           throws java.lang.IllegalArgumentException,
                  java.io.IOException
Note: The geotools GridCoverage class does not implement the geoAPI GridCoverage Interface so this method shows an error. All other methods are using the geotools GridCoverage class

Specified by:
write in interface org.opengis.coverage.grid.GridCoverageWriter
Throws:
java.lang.IllegalArgumentException
java.io.IOException
See Also:
GridCoverageWriter.write(org.opengis.coverage.grid.GridCoverage, org.opengis.parameter.GeneralParameterValue[])

dispose

public void dispose()
             throws java.io.IOException
Specified by:
dispose in interface org.opengis.coverage.grid.GridCoverageWriter
Throws:
java.io.IOException
See Also:
GridCoverageWriter.dispose()


Copyright © GeoTools. All Rights Reserved.