org.geotools.gce.gtopo30
Class GTopo30Writer

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

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

Class useful for writing GTopo30 file format from a GridCoverage2D.

Author:
jeichar, Simone Giannecchini, mkraemer

Constructor Summary
GTopo30Writer(java.lang.Object dest)
          Creates a GTopo30Writer.
 
Method Summary
 void dispose()
           
 java.lang.Object getDestination()
           
 org.opengis.coverage.grid.Format getFormat()
           
 java.lang.String[] 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GTopo30Writer

public GTopo30Writer(java.lang.Object dest)
Creates a GTopo30Writer.

Parameters:
dest - The destination object can be a File (a directory actually), an URL to a directory, a ZipOutputStream or a String representing a directory or an URL to a directory.
Method Detail

getFormat

public org.opengis.coverage.grid.Format getFormat()
Specified by:
getFormat in interface org.opengis.coverage.grid.GridCoverageWriter
See Also:
GridCoverageWriter.getFormat()

getDestination

public java.lang.Object getDestination()
Specified by:
getDestination in interface org.opengis.coverage.grid.GridCoverageWriter
See Also:
GridCoverageWriter.getDestination()

getMetadataNames

public java.lang.String[] getMetadataNames()
Specified by:
getMetadataNames in interface org.opengis.coverage.grid.GridCoverageWriter
See Also:
GridCoverageWriter.getMetadataNames()

setMetadataValue

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

setCurrentSubname

public void setCurrentSubname(java.lang.String name)
Specified by:
setCurrentSubname in interface org.opengis.coverage.grid.GridCoverageWriter
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
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()
Specified by:
dispose in interface org.opengis.coverage.grid.GridCoverageWriter
See Also:
GridCoverageWriter.dispose()


Copyright © GeoTools. All Rights Reserved.