org.geotools.gce.gtopo30
Class GTopo30Reader

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

public class GTopo30Reader
extends java.lang.Object
implements org.opengis.coverage.grid.GridCoverageReader

This class provides a GridCoverageReader for the GTopo30Format.

Author:
jeichar, mkraemer

Constructor Summary
GTopo30Reader(java.lang.Object source)
          GTopo30Reader constructor.
 
Method Summary
 void dispose()
           
 java.lang.String getCurrentSubname()
           
 org.opengis.coverage.grid.Format getFormat()
           
 java.lang.String[] getMetadataNames()
           
 java.lang.String getMetadataValue(java.lang.String name)
           
 java.lang.Object getSource()
           
 boolean hasMoreGridCoverages()
           
 java.lang.String[] listSubNames()
           
 org.opengis.coverage.grid.GridCoverage read(org.opengis.parameter.GeneralParameterValue[] parameters)
           
 void setCropEnvelope(GeneralEnvelope crop)
          Sets an envelope that will be used to crop the source data in order to get fewer data from the file
 void skip()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GTopo30Reader

public GTopo30Reader(java.lang.Object source)
              throws java.net.MalformedURLException,
                     DataSourceException
GTopo30Reader constructor.

Parameters:
source - The source object (can be a File, an URL or a String representing a File or an URL).
Throws:
java.net.MalformedURLException - if the URL does not correspond to one of the GTopo30 files
DataSourceException - if the given url points to an unrecognized file
Method Detail

setCropEnvelope

public void setCropEnvelope(GeneralEnvelope crop)
Sets an envelope that will be used to crop the source data in order to get fewer data from the file

Parameters:
crop - the rectangle that will be used to extract data from the file

getFormat

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

getSource

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

getMetadataNames

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

getMetadataValue

public java.lang.String getMetadataValue(java.lang.String name)
                                  throws org.opengis.coverage.MetadataNameNotFoundException
Specified by:
getMetadataValue in interface org.opengis.coverage.grid.GridCoverageReader
Throws:
org.opengis.coverage.MetadataNameNotFoundException
See Also:
GridCoverageReader.getMetadataValue(java.lang.String)

listSubNames

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

getCurrentSubname

public java.lang.String getCurrentSubname()
Specified by:
getCurrentSubname in interface org.opengis.coverage.grid.GridCoverageReader
See Also:
GridCoverageReader.getCurrentSubname()

read

public org.opengis.coverage.grid.GridCoverage read(org.opengis.parameter.GeneralParameterValue[] parameters)
                                            throws java.lang.IllegalArgumentException,
                                                   java.io.IOException
Specified by:
read in interface org.opengis.coverage.grid.GridCoverageReader
Throws:
java.lang.IllegalArgumentException
java.io.IOException
See Also:
GridCoverageReader.read(org.opengis.parameter.GeneralParameterValue[])

dispose

public void dispose()
Specified by:
dispose in interface org.opengis.coverage.grid.GridCoverageReader
See Also:
GridCoverageReader.dispose()

hasMoreGridCoverages

public boolean hasMoreGridCoverages()
Specified by:
hasMoreGridCoverages in interface org.opengis.coverage.grid.GridCoverageReader
See Also:
GridCoverageReader.hasMoreGridCoverages()

skip

public void skip()
Specified by:
skip in interface org.opengis.coverage.grid.GridCoverageReader
See Also:
GridCoverageReader.skip()


Copyright © GeoTools. All Rights Reserved.