com.iver.cit.gvsig.fmap.drivers.wcs
Class FMapWCSDriver

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.drivers.RemoteServiceDriver
      extended bycom.iver.cit.gvsig.fmap.drivers.wcs.FMapWCSDriver
All Implemented Interfaces:
OGCWCSService

public class FMapWCSDriver
extends RemoteServiceDriver
implements OGCWCSService

Driver between the FMap and WCSClient Controlador entre FMap y WCSClient

Author:
jaume

Constructor Summary
FMapWCSDriver()
           
 
Method Summary
 void close()
          No close operation is needed since WCS service it is a non-session based protocol.
 void connect()
          Establishes the connection to the WCS server.
 void describeCoverage()
          Sends the DescribeCoverage operation to the server.
 void getCapabilities()
          Sends the GetCapabilities operation to the server.
 java.io.File getCoverage()
          Sends the GetCoverage operation.
 java.lang.String getCoverageDescription(java.lang.String coverageName)
          Returns a String containing a description of an specific coverage.
 CoverageOffering getCoverageDetails(java.lang.String nomCobertura)
          Returns the details of the coverage given by the coverage's name.
 java.lang.String[] getCoverageNames()
          Returns a list containing the names of the coverages located at the server.
 java.lang.String getDescription()
          Returns name and description of the server.
 java.util.ArrayList getFormats(java.lang.String coverage)
          Returns a list containing the formats supported by the coverage Devuelve una lista de formatos soportados por la cobertura.
 java.awt.geom.Rectangle2D getFullExtent(java.lang.String coverageName, java.lang.String srs)
          Returns the coverage's MAX extent from the server.
 java.lang.String getLabel()
          Returns a human-readable string containing the server's name.
 java.lang.String getLabel(java.lang.String coverageName)
          Returns the label of an specific coverage given by the coverage name Obtiene la etiqueta de una cobertura específica
 java.awt.geom.Point2D getMaxResolution(java.lang.String coverageName)
          Returns the max resolution of a specific coverage given by the coverage's name.
 java.lang.String getMetadataLink()
          Returns the metadata link.
 java.lang.String getName()
          Returns the string "WCSDriver", which is the driver's name.
 int getNumOfCoverages()
          Returns the number of coverages at the server.
 java.util.ArrayList getParameters(java.lang.String coverageName)
          Returns an Arraylist containing the parameters of the coverage given by the coverage name.
 java.lang.String getResponsibleParty()
          Returns the responsible party value.
 java.lang.String getServerName()
          Returns the server's name.
 java.util.ArrayList getSRSs(java.lang.String coverageName)
          Returns an ArrayList containing a set of Strings with the coverage's SRSs.
 java.util.ArrayList getTimes(java.lang.String coverageName)
          Returns an ArrayList containing strings for the time positions of an specific coverage given by the coverage's name.
 java.lang.String getUpdateSequence()
          Returns the update sequence value.
 java.lang.String getVersion()
          Returns a string containing the server's WCS version number.
 void setGetCoverageParams(java.lang.String query)
          Sends the GetCoverage query args using a string containing list of &-separated pair-values (name=value) Envía los valores de la consulta GetCoverage en forma cadena de pares 'nombre=valor' separados por '&'.
 void setHost(java.lang.String host)
          Sets the server that we want to connect to.
 
Methods inherited from class com.iver.cit.gvsig.fmap.drivers.RemoteServiceDriver
getHost, getPort, getServiceName, isConnected, setConnected, setPort, setServiceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FMapWCSDriver

public FMapWCSDriver()
Method Detail

getName

public java.lang.String getName()
Returns the string "WCSDriver", which is the driver's name. Devuelve "WCSDriver", el nombre del driver.

Returns:
String

setHost

public void setHost(java.lang.String host)
Sets the server that we want to connect to. Establece el servidor al que se quiere conectar.

Overrides:
setHost in class RemoteServiceDriver
Parameters:
host -

getCapabilities

public void getCapabilities()
                     throws ServerOutOfOrderException
Sends the GetCapabilities operation to the server. Envía la operación GetCapabilities al servidor.

Specified by:
getCapabilities in interface OGCWCSService
Throws:
ServerOutOfOrderException

describeCoverage

public void describeCoverage()
Sends the DescribeCoverage operation to the server. Envía la operación DescribeCoverage

Specified by:
describeCoverage in interface OGCWCSService

getCoverage

public java.io.File getCoverage()
                         throws ServerErrorResponseException
Sends the GetCoverage operation. Envía la operación GetCoverage.

Specified by:
getCoverage in interface OGCWCSService
Throws:
ServerErrorResponseException

getServerName

public java.lang.String getServerName()
Returns the server's name. The string is extracted from the GetCapabilities response. Devuelve el nombre del servidor indicado por éste.

Returns:
String

getLabel

public java.lang.String getLabel()
Returns a human-readable string containing the server's name. Devuelve el nombre legible del servidor devuelto por éste.

Specified by:
getLabel in interface OGCWCSService
Returns:
String

getVersion

public java.lang.String getVersion()
Returns a string containing the server's WCS version number. Devuelve el número de versión WCS del servidor

Returns:
String

getDescription

public java.lang.String getDescription()
Returns name and description of the server. It is supposed to be used as the source of the abstract field in your application's interface. Devuelve nombre y descripción (abstract) del servidor.

Specified by:
getDescription in interface OGCWCSService
Returns:
String

getUpdateSequence

public java.lang.String getUpdateSequence()
Returns the update sequence value. Devuelve el valor de update sequence del servidor

Returns:
String

getFormats

public java.util.ArrayList getFormats(java.lang.String coverage)
Returns a list containing the formats supported by the coverage Devuelve una lista de formatos soportados por la cobertura.

Specified by:
getFormats in interface OGCWCSService
Parameters:
coverage -
Returns:
ArrayList

getMetadataLink

public java.lang.String getMetadataLink()
Returns the metadata link. Devuelve el enlace a los metadatos.

Returns:
String

getResponsibleParty

public java.lang.String getResponsibleParty()
Returns the responsible party value. Devuelve el valor para responsible party.

Returns:
String

getCoverageNames

public java.lang.String[] getCoverageNames()
Returns a list containing the names of the coverages located at the server. Devuelve una lista de nombres de coberturas

Specified by:
getCoverageNames in interface OGCWCSService
Returns:
String[]

getNumOfCoverages

public int getNumOfCoverages()
Returns the number of coverages at the server. Devuelve el numero de coberturas en el servidor

Returns:
int

getCoverageDetails

public CoverageOffering getCoverageDetails(java.lang.String nomCobertura)
Returns the details of the coverage given by the coverage's name. Devuelve los detalles de la cobertura en CoverageOffering

Parameters:
nomCobertura -
Returns:
CoverageOffering (es.uji.lsi.wcs.XmlParsing.CoverageOffering)

connect

public void connect()
             throws java.io.IOException,
                    DriverException
Establishes the connection to the WCS server. Connecting to a WCS is an abstraction, it actually sends a GetCapabilities and a general DescribeCoverage request (not a coverage-specific DescribeCoverage request) to read the necessary data for building further GetCoverage requests. La conexión a un servidor WCS es una abstracción de dos operaciones: GetCapabilities y DescribeCoverage. Con ellas, se obtienen los datos necesarios para poder operar con el servidor.

Specified by:
connect in class RemoteServiceDriver
Throws:
IOException, - DriverException.
java.io.IOException
DriverException

close

public void close()
No close operation is needed since WCS service it is a non-session based protocol. So, this does nothing and you can omit it. La operación close no es necesaria en un servicio WCS ya que este se implementa sobre un protocolo no orientado a sesiones. Así que esto no hace nada y puede ser omitido.

Specified by:
close in class RemoteServiceDriver

setGetCoverageParams

public void setGetCoverageParams(java.lang.String query)
Sends the GetCoverage query args using a string containing list of &-separated pair-values (name=value) Envía los valores de la consulta GetCoverage en forma cadena de pares 'nombre=valor' separados por '&'.


getLabel

public java.lang.String getLabel(java.lang.String coverageName)
Returns the label of an specific coverage given by the coverage name Obtiene la etiqueta de una cobertura específica

Specified by:
getLabel in interface OGCWCSService
Parameters:
coverageName - (string)
Returns:
string

getFullExtent

public java.awt.geom.Rectangle2D getFullExtent(java.lang.String coverageName,
                                               java.lang.String srs)
                                        throws java.io.IOException,
                                               DriverException
Returns the coverage's MAX extent from the server. Obtiene la MÁXIMA extensión de la cobertura de el servidor.

Specified by:
getFullExtent in interface OGCWCSService
Returns:
Rectangle2D
Throws:
DriverException
java.io.IOException

getParameters

public java.util.ArrayList getParameters(java.lang.String coverageName)
Returns an Arraylist containing the parameters of the coverage given by the coverage name. The list contains a set of Parametro objects. Devuelve los parámetros soportados por la cobertura especificada por su nombre. La lista contiene un juego de objetos Parametro.

Specified by:
getParameters in interface OGCWCSService
Returns:
ArrayList de Parametro

getMaxResolution

public java.awt.geom.Point2D getMaxResolution(java.lang.String coverageName)
Returns the max resolution of a specific coverage given by the coverage's name. Obtiene la resolución máxima de una cobertura específica

Specified by:
getMaxResolution in interface OGCWCSService
Parameters:
coverageName - (string)
Returns:
double

getSRSs

public java.util.ArrayList getSRSs(java.lang.String coverageName)
Returns an ArrayList containing a set of Strings with the coverage's SRSs. Obtiene un ArrayList con los SRS de una cobertura específica

Specified by:
getSRSs in interface OGCWCSService
Parameters:
coverageName - (string)
Returns:
ArrayList

getCoverageDescription

public java.lang.String getCoverageDescription(java.lang.String coverageName)
Returns a String containing a description of an specific coverage. Obtiene la descripción de una cobertura específica

Specified by:
getCoverageDescription in interface OGCWCSService
Returns:
string

getTimes

public java.util.ArrayList getTimes(java.lang.String coverageName)
Returns an ArrayList containing strings for the time positions of an specific coverage given by the coverage's name. Obtiene la lista de tiempos de una cobertura específica

Specified by:
getTimes in interface OGCWCSService
Parameters:
coverageName - (string)
Returns:
ArrayList