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,
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, ...).
|
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 void close()
RemoteClientDoes ...
close in class RemoteClientpublic boolean connect(boolean override,
org.gvsig.compat.net.ICancellable cancel)
Checks the connection to de remote WMS and requests its capabilities.
connect in class RemoteClientoverride - public java.io.File getCoverage(WCSStatus status, org.gvsig.compat.net.ICancellable cancel) throws ServerErrorException, WCSException
status - ServerErrorExceptionWCSExceptionpublic java.util.Hashtable getCoverageList()
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
ServerErrorExceptionWMSExceptionpublic java.lang.String getDescription()
public java.lang.String getExceptionMessage(java.io.File file)
throws java.io.IOException
file - java.io.IOExceptionpublic java.awt.geom.Rectangle2D getExtent(java.lang.String coverageName,
java.lang.String crs)
coverageName - crs - public java.util.ArrayList getFormats()
public java.lang.String getLabel(java.lang.String coverageName)
coverageName - public java.lang.String getServiceTitle()
public java.lang.String getVersion()
Copyright © 2013 gvSIG Association. All Rights Reserved.