| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.model.gc.GC_GridCoverageExchange_Impl
Support for creation of grid coverages from persistent formats as well as exporting a grid coverage to a persistent formats. For example, it allows for creation of grid coverages from the GeoTIFF Well-known binary format and exporting to the GeoTIFF file format. Basic implementations only require creation of grid coverages from a file format or resource.
| Field Summary | |
| private static GC_Format[] | formats | 
| private  java.util.HashMap | metadata | 
| private  int | numFormats | 
| Constructor Summary | |
| GC_GridCoverageExchange_Impl()defualt constructor | |
| GC_GridCoverageExchange_Impl(GC_Parameter[] metadata)constructor initializing the GC_GridCoverageExchange with user defined metadata | |
| Method Summary | |
|  GC_GridCoverage | createFromName(java.lang.String name)Create a new GC_GridCoveragefrom a grid coverage file. | 
|  GC_GridCoverage | createFromSubName(java.lang.String name,
                  java.lang.String subName)Create a new GC_GridCoveragefrom a file where the file contains many
 grid coverages. | 
|  void | exportTo(GC_GridCoverage gridCoverage,
         java.lang.String fileFormat,
         java.lang.String fileName,
         GC_Parameter[] creationOptions)Export a grid coverage to a persistent file format. | 
|  GC_Format | getFormat(int index)Retrieve information on file formats or resources available with the GC_GridCoverageExchangeimplementation. | 
|  java.lang.String[] | getMetadataNames()List of metadata keywords for the interface. | 
|  java.lang.String | getMetadataValue(java.lang.String name)Retrieve the metadata value for a given metadata name. | 
|  int | getNumFormats()The number of formats supported by the GC_GridCoverageExchange. | 
|  java.lang.String[] | listSubNames(java.lang.String name)Retrieve the list of grid coverages contained within the given file or resource. | 
|  GC_GridCoverage | move(GC_GridCoverage gridCoverage,
     CS_CoordinateSystem coordsys,
     CT_MathTransform gridToCoordinateSystem)Create a new coverage with a different coordinate reference system. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
private java.util.HashMap metadata
private int numFormats
private static GC_Format[] formats
| Constructor Detail | 
public GC_GridCoverageExchange_Impl()
public GC_GridCoverageExchange_Impl(GC_Parameter[] metadata)
metadata - Metadata of the GC_GridCoverageExchange| Method Detail | 
public GC_GridCoverage createFromName(java.lang.String name)
                               throws java.rmi.RemoteException
GC_GridCoverage from a grid coverage file.
 This method is meant to allow implementations to create a GC_GridCoverage.
 from any file format. An implementation can support any number of formats which is
 determined from the GC_Format interface.
createFromName in interface GC_GridCoverageExchangename - File name (including path) from which to create a grid coverage interface.
             This file name can be any valid file name within the underlying operating
             system of the server or a valid string, such as a URL which specifics a grid
             coverage. Each implementation must determine if file name is valid for it's
             own use.
GC_GridCoverage.
java.rmi.RemoteException - if a remote method call failed.
public GC_GridCoverage createFromSubName(java.lang.String name,
                                         java.lang.String subName)
                                  throws java.rmi.RemoteException
GC_GridCoverage from a file where the file contains many
 grid coverages. This method is meant to allow implementations to create a
 GC_GridCoverage from any file format which contains many grid
 coverages. An example of such a format is HDF-EOS format.
createFromSubName in interface GC_GridCoverageExchangename - File name (including path) from which to create a grid coverage interface.
             This file name can be any valid file name within the underlying operating
             system of the server or a valid string, such as a URL which specifics a
             grid coverage. Each implementation must determine if name is valid for it's
             own use.subName - Name of grid coverage contained in file name or resource.
GC_GridCoverage from a file where the file contains many grid coverages.
java.rmi.RemoteException - if a remote method call failed.
public void exportTo(GC_GridCoverage gridCoverage,
                     java.lang.String fileFormat,
                     java.lang.String fileName,
                     GC_Parameter[] creationOptions)
              throws java.rmi.RemoteException
GC_Format interface.
 Sample file formats include:
 Other file format names are implementation dependent."GeoTIFF" - GeoTIFF "PIX" - PCI Geomatics PIX "HDF-EOS" - NASA HDF-EOS "NITF" - National Image Transfer Format "STDS-DEM" - Standard Transfer Data Standard
exportTo in interface GC_GridCoverageExchangegridCoverage - Source grid coverage.fileFormat - String which indicates exported file format.fileName - File name to store grid coverage.
                 This file name can be any valid file name within the
                 underlying operating system of the server.creationOptions - Options to use for creating the file.
                 These options are implementation specific are the valid
                 options is determined from the GC_Format interface.
java.rmi.RemoteException - if a remote method call failed.
public GC_Format getFormat(int index)
                    throws java.rmi.RemoteException
GC_GridCoverageExchange implementation.
 Indices start at zero.
getFormat in interface GC_GridCoverageExchangeindex - Index for which to retrieve the format information.
GC_GridCoverageExchange implementation.
java.rmi.RemoteException - if a remote method call failed.
public java.lang.String[] getMetadataNames()
                                    throws java.rmi.RemoteException
getMetadataNames in interface GC_GridCoverageExchangejava.rmi.RemoteException - if a remote method call failed.
public java.lang.String getMetadataValue(java.lang.String name)
                                  throws java.rmi.RemoteException
getMetadataValue in interface GC_GridCoverageExchangename - Metadata keyword for which to retrieve metadata.
java.rmi.RemoteException - if a remote method call failed.
public int getNumFormats()
                  throws java.rmi.RemoteException
GC_GridCoverageExchange.
getNumFormats in interface GC_GridCoverageExchangeGC_GridCoverageExchange.
java.rmi.RemoteException - if a remote method call failed.
public java.lang.String[] listSubNames(java.lang.String name)
                                throws java.rmi.RemoteException
listSubNames in interface GC_GridCoverageExchangename - File name (including path) from which to retrieve the grid coverage names.
             This file name can be any valid file name within the underlying operating
             system of the server or a valid string, such as a URL which specifics a
             grid coverage. Each implementation must determine if file name is valid
             for it s own use. Implementations can support many different of file formats.
java.rmi.RemoteException - if a remote method call failed.
public GC_GridCoverage move(GC_GridCoverage gridCoverage,
                            CS_CoordinateSystem coordsys,
                            CT_MathTransform gridToCoordinateSystem)
                     throws java.rmi.RemoteException
move in interface GC_GridCoverageExchangegridCoverage - Source grid coverage.coordsys - Coordinate system of the new grid coverage.gridToCoordinateSystem - Math transform to assign to grid coverage.
java.rmi.RemoteException - if a remote method call failed.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||