org.gvsig.remoteclient.wcs
Class WCSClient

java.lang.Object
  extended by org.gvsig.remoteclient.RemoteClient
      extended by org.gvsig.remoteclient.RasterClient
          extended by org.gvsig.remoteclient.wcs.WCSClient
All Implemented Interfaces:
IRasterClient

public class WCSClient
extends RasterClient

WCSClient managing the low-level comunication to the server. It is used as a bridge between a standard WCS server and other high-level clients.

Author:
jaume dominguez faus - jaume.dominguez@iver.es

Field Summary
 
Fields inherited from class org.gvsig.remoteclient.RemoteClient
hostName, port, serviceName
 
Constructor Summary
WCSClient(java.lang.String host)
          Constructor.
 
Method Summary
 void close()
          Does ...
 boolean connect(boolean override, org.gvsig.compat.net.ICancellable cancel)
          Checks the connection to de remote WMS and requests its capabilities.
 java.io.File getCoverage(WCSStatus status, org.gvsig.compat.net.ICancellable cancel)
          Sends the GetCoverage request according to the settings passed in the status argument.
 java.util.Hashtable getCoverageList()
          Returns a hash table containing the WCSCoverage's produced at parse time using the coverage names as the Hashtable's keys
 java.net.URL getCoverageURL(WCSStatus status, org.gvsig.compat.net.ICancellable cancel)
          Gets the GetMap URL.
 java.lang.String getDescription()
          Returns a brief description of the service, it is a human-readable string.
 java.lang.String getExceptionMessage(java.io.File file)
          Returns the exception message if the file is a XML instead of a image.
 java.awt.geom.Rectangle2D getExtent(java.lang.String coverageName, java.lang.String crs)
          Given a coverage name and the CRS name, it returns the extent defined by the server in the DescribeCoverage document.
 java.util.ArrayList getFormats()
           
 java.lang.String getLabel(java.lang.String coverageName)
          Given a coverage name, it returns the coverage's title.
 java.lang.String getServiceTitle()
          Returns the title of the service.
 java.lang.String getVersion()
          Returns the service version (1.0.0, 1.1.0, ...).
 
Methods inherited from class org.gvsig.remoteclient.RemoteClient
getHost, getPort, getServiceName, getSubtype, getType, setHost, setPort, setServiceName, setSubtype, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WCSClient

public WCSClient(java.lang.String host)
          throws java.net.ConnectException,
                 java.io.IOException
Constructor. the parameter host, indicates the WCS host to connect.

Throws:
java.io.IOException
java.net.ConnectException
Method Detail

close

public void close()
Description copied from class: RemoteClient

Does ...

Specified by:
close in class RemoteClient

connect

public boolean connect(boolean override,
                       org.gvsig.compat.net.ICancellable cancel)

Checks the connection to de remote WMS and requests its capabilities.

Specified by:
connect in class RemoteClient
Parameters:
override -

getCoverage

public java.io.File getCoverage(WCSStatus status,
                                org.gvsig.compat.net.ICancellable cancel)
                         throws ServerErrorException,
                                WCSException
Sends the GetCoverage request according to the settings passed in the status argument.

Parameters:
status -
Returns:
File
Throws:
ServerErrorException
WCSException

getCoverageList

public java.util.Hashtable getCoverageList()
Returns a hash table containing the WCSCoverage's produced at parse time using the coverage names as the Hashtable's keys

Returns:
Hashtable.

getCoverageURL

public java.net.URL getCoverageURL(WCSStatus status,
                                   org.gvsig.compat.net.ICancellable cancel)
                            throws WMSException,
                                   ServerErrorException

Gets the GetMap URL. The final client should download the file

Throws:
ServerErrorException
WMSException

getDescription

public java.lang.String getDescription()
Returns a brief description of the service, it is a human-readable string.

Returns:
String

getExceptionMessage

public java.lang.String getExceptionMessage(java.io.File file)
                                     throws java.io.IOException
Returns the exception message if the file is a XML instead of a image.

Parameters:
file -
Returns:
Throws:
java.io.IOException

getExtent

public java.awt.geom.Rectangle2D getExtent(java.lang.String coverageName,
                                           java.lang.String crs)
Given a coverage name and the CRS name, it returns the extent defined by the server in the DescribeCoverage document.

Parameters:
coverageName -
crs -
Returns:
Rectangle2D

getFormats

public java.util.ArrayList getFormats()
Returns:

getLabel

public java.lang.String getLabel(java.lang.String coverageName)
Given a coverage name, it returns the coverage's title.

Parameters:
coverageName -
Returns:
String

getServiceTitle

public java.lang.String getServiceTitle()
Returns the title of the service. The title is a human-readable string format used to label the service connection.

Returns:
String

getVersion

public java.lang.String getVersion()
Returns the service version (1.0.0, 1.1.0, ...).

Returns:
String


Copyright © 2014 gvSIG Association. All Rights Reserved.