public class WCSClient extends RasterClient
hostName, port, serviceName| Constructor and Description |
|---|
WCSClient(java.lang.String host)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does ...
|
boolean |
connect(boolean override,
ICancellable cancel)
Checks the connection to de remote WMS and requests its capabilities.
|
java.io.File |
getCoverage(WCSStatus status,
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,
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, ...).
|
getHost, getPort, getServiceName, getSubtype, getType, setHost, setPort, setServiceName, setSubtype, setTypepublic WCSClient(java.lang.String host)
throws java.net.ConnectException,
java.io.IOException
java.io.IOExceptionjava.net.ConnectExceptionpublic boolean connect(boolean override,
ICancellable cancel)
Checks the connection to de remote WMS and requests its capabilities.
connect in class RemoteClientoverride - public void close()
RemoteClientDoes ...
close in class RemoteClientpublic java.lang.String getServiceTitle()
public java.lang.String getVersion()
public java.lang.String getDescription()
public java.util.ArrayList getFormats()
public java.util.Hashtable getCoverageList()
public java.lang.String getLabel(java.lang.String coverageName)
coverageName - public java.awt.geom.Rectangle2D getExtent(java.lang.String coverageName,
java.lang.String crs)
coverageName - crs - public java.io.File getCoverage(WCSStatus status, ICancellable cancel) throws ServerErrorException, WCSException
status - ServerErrorExceptionWCSExceptionpublic java.net.URL getCoverageURL(WCSStatus status, ICancellable cancel) throws ServerErrorException
Gets the GetMap URL. The final client should download the file
ServerErrorExceptionpublic java.lang.String getExceptionMessage(java.io.File file)
throws java.io.IOException
file - java.io.IOException